package com.miaxis.test;

import com.miaxis.SdjkApplication;
import com.miaxis.score.service.IScoreInfoService;
import com.miaxis.feign.dto.DyUserInfoDTO;
import com.miaxis.feign.service.DyService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

//@ActiveProfiles("prod")
@SpringBootTest(classes = SdjkApplication.class)
@RunWith(SpringRunner.class)
public class NormalTest {

    @Autowired
    private IScoreInfoService iScoreInfoService;


    @Autowired
    private DyService dyService;

    @Test
    public void test1() throws Exception {
        DyUserInfoDTO dyUserInfoDTO= new DyUserInfoDTO();
        dyUserInfoDTO.setOpen_id("17788008-db1e-407a-b870-7a8e6ad034e0");
        dyUserInfoDTO.setAccess_token("eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImU2ZTg2ZWRiLTE1ZjctNDJkOC1iNjIzLTgxOTliNGYxNGFjNSJ9.7rsiOFTy3Bv2eS3iopEIGaU6RktDqviVZC0lNw4_mDm6h5AEeSbXFy8rlIUjFTEQJUd07CMnISbHIrzIkUaVDg");
        String userInfoStr = dyService.getUserInfo(dyUserInfoDTO);
        System.out.println(userInfoStr);


    }














}
