|
@@ -3,6 +3,7 @@ package com.miaxis.test;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.miaxis.ZzjsApplication;
|
|
|
+import com.miaxis.feign.dto.Ydt;
|
|
|
import com.miaxis.feign.service.IYdtService;
|
|
|
import com.miaxis.question.domain.QuestionInfoGet;
|
|
|
import com.miaxis.question.service.IQuestionInfoGetService;
|
|
@@ -11,6 +12,7 @@ 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;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
@SpringBootTest(classes = ZzjsApplication.class)
|
|
|
@RunWith(SpringRunner.class)
|
|
@@ -87,7 +89,24 @@ public class YdtTest {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void getSkillInfo() {
|
|
|
+ Ydt ydt = new Ydt();
|
|
|
+ ydt.setNonceStr("0E1EE833-16AE-4BBE-A3ED-5697E3FC21FF");
|
|
|
+ ydt.setQuestionId("23388");
|
|
|
+ ydt.setQuestionId("1539");
|
|
|
+ //String str = "{\"nonceStr\":\"0E1EE833-16AE-4BBE-A3ED-5697E3FC21FF\",\"questionId\":\"13581\"}";
|
|
|
+
|
|
|
+ String jsonObject = JSONObject.toJSONString(ydt);
|
|
|
+ System.out.println(jsonObject);
|
|
|
+ String result = ydtService.getSkillInfo(jsonObject);
|
|
|
+
|
|
|
+
|
|
|
+ System.out.println(result);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|