|
@@ -4,13 +4,17 @@ import com.miaxis.SdjkApplication;
|
|
|
import com.miaxis.score.service.IScoreInfoService;
|
|
|
import com.miaxis.feign.dto.DyUserInfoDTO;
|
|
|
import com.miaxis.feign.service.DyService;
|
|
|
+import com.miaxis.wx.service.IWxGzhService;
|
|
|
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.ActiveProfiles;
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
-//@ActiveProfiles("prod")
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+
|
|
|
+@ActiveProfiles("prodtest")
|
|
|
@SpringBootTest(classes = SdjkApplication.class)
|
|
|
@RunWith(SpringRunner.class)
|
|
|
public class NormalTest {
|
|
@@ -22,13 +26,13 @@ public class NormalTest {
|
|
|
@Autowired
|
|
|
private DyService dyService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IWxGzhService wxGzhService;
|
|
|
+
|
|
|
+
|
|
|
@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);
|
|
|
+ wxGzhService.handlePublicMsg(null);
|
|
|
|
|
|
|
|
|
}
|