|
|
@@ -47,7 +47,13 @@ public class TaiKangHttpServiceTest {
|
|
|
@Order(0)
|
|
|
@Disabled
|
|
|
public void login() {
|
|
|
- String firstToken = taiKangHttpService.identityToken(null);
|
|
|
+ IdentityTokenResult result1 = taiKangHttpService.identityToken(null);
|
|
|
+
|
|
|
+ assertNotNull(result1);
|
|
|
+
|
|
|
+ String firstToken = result1.getTkCarRequestToken();
|
|
|
+
|
|
|
+ assertNotNull(firstToken);
|
|
|
|
|
|
LoginResult result = taiKangHttpService.login("Tgengchenjie", "Gcj123456#", firstToken);
|
|
|
|
|
|
@@ -57,14 +63,29 @@ public class TaiKangHttpServiceTest {
|
|
|
assertNotNull(result.getTplatformId());
|
|
|
assertNotNull(result.getUserId());
|
|
|
assertEquals("0", result.getLoginStatus());
|
|
|
+
|
|
|
+ Map<String, Object> unknownFields = result.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@Order(1)
|
|
|
public void identityToken() {
|
|
|
- String token = taiKangHttpService.identityToken("feda77e829d4dedbbd8b4e236bacfac5");
|
|
|
+ IdentityTokenResult result = taiKangHttpService.identityToken("feda77e829d4dedbbd8b4e236bacfac5");
|
|
|
+
|
|
|
+ assertNotNull(result);
|
|
|
+ assertNotNull(result.getTkCarRequestToken());
|
|
|
+
|
|
|
+ System.out.println("token: " + result.getTkCarRequestToken());
|
|
|
+
|
|
|
+ Map<String, Object> unknownFields = result.getUnknownFields();
|
|
|
|
|
|
- System.out.println("token: " + token);
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@@ -86,69 +107,125 @@ public class TaiKangHttpServiceTest {
|
|
|
@Test
|
|
|
@Order(3)
|
|
|
public void basicInfo() {
|
|
|
- BasicInfoResult basicInfoResult = taiKangHttpService.basicInfo("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503051425186530000");
|
|
|
+ BasicInfoResult result = taiKangHttpService.basicInfo("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503051425186530000");
|
|
|
+
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
- System.out.println(basicInfoResult.getAreaInfoVo().getCheckCodeMeg());
|
|
|
+ System.out.println(result.getAreaInfoVo().getCheckCodeMeg());
|
|
|
+
|
|
|
+ Map<String, Object> unknownFields = result.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@Order(4)
|
|
|
public void carType() {
|
|
|
- List<CarTypeResult> carTypeResults = taiKangHttpService.carType("feda77e829d4dedbbd8b4e236bacfac5", "0114");
|
|
|
+ List<CarTypeResult> result = taiKangHttpService.carType("feda77e829d4dedbbd8b4e236bacfac5", "0114");
|
|
|
+
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
- System.out.println(carTypeResults.get(0).getCarTypeCname());
|
|
|
- System.out.println(carTypeResults.get(1).getCarTypeCname());
|
|
|
+ System.out.println(result.get(0).getCarTypeCname());
|
|
|
+ System.out.println(result.get(1).getCarTypeCname());
|
|
|
+
|
|
|
|
|
|
- TaiKangHttpServiceTest.carTypeResults = carTypeResults;
|
|
|
+ for (CarTypeResult carTypeResult : result) {
|
|
|
+ Map<String, Object> unknownFields = carTypeResult.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ TaiKangHttpServiceTest.carTypeResults = result;
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@Order(5)
|
|
|
public void agentFuzzy() {
|
|
|
- List<AgentFuzzyResult> agentFuzzyResults = taiKangHttpService.agentFuzzy("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503051425186530000", "泰康人寿");
|
|
|
+ List<AgentFuzzyResult> result = taiKangHttpService.agentFuzzy("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503051425186530000", "泰康人寿");
|
|
|
+
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
- System.out.println(agentFuzzyResults.get(0).getIntermediaryName());
|
|
|
- System.out.println(agentFuzzyResults.get(1).getIntermediaryName());
|
|
|
- System.out.println(agentFuzzyResults.get(3).getIntermediaryName());
|
|
|
+ System.out.println(result.get(0).getIntermediaryName());
|
|
|
+ System.out.println(result.get(1).getIntermediaryName());
|
|
|
+ System.out.println(result.get(3).getIntermediaryName());
|
|
|
+
|
|
|
+ for (AgentFuzzyResult agentFuzzyResult : result) {
|
|
|
+ Map<String, Object> unknownFields = agentFuzzyResult.getUnknownFields();
|
|
|
|
|
|
- TaiKangHttpServiceTest.agentFuzzyResults = agentFuzzyResults;
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
+ }
|
|
|
+
|
|
|
+ TaiKangHttpServiceTest.agentFuzzyResults = result;
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@Order(6)
|
|
|
public void agentQuery() {
|
|
|
- AgentQueryResult agentQueryResult = taiKangHttpService.agentQuery("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503051401086530000", "泰康人寿(个险)(64827)", "R35016546");
|
|
|
+ AgentQueryResult result = taiKangHttpService.agentQuery("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503051401086530000", "泰康人寿(个险)(64827)", "R35016546");
|
|
|
+
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
- System.out.println(agentQueryResult.getAgentName());
|
|
|
- System.out.println(agentQueryResult.getAgencyName());
|
|
|
+ System.out.println(result.getAgentName());
|
|
|
+ System.out.println(result.getAgencyName());
|
|
|
|
|
|
- TaiKangHttpServiceTest.agentQueryResult = agentQueryResult;
|
|
|
+ Map<String, Object> unknownFields = result.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
+
|
|
|
+ TaiKangHttpServiceTest.agentQueryResult = result;
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@Order(7)
|
|
|
public void areaUser() {
|
|
|
- List<AreaUserResult> agentQueryResults = taiKangHttpService.areaUser("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503051401086530000", "R35016546");
|
|
|
+ List<AreaUserResult> result = taiKangHttpService.areaUser("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503051401086530000", "R35016546");
|
|
|
+
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
- System.out.println(agentQueryResults.get(0).getProvinceCode());
|
|
|
- System.out.println(agentQueryResults.get(0).getProvinceName());
|
|
|
- System.out.println(agentQueryResults.get(0).getProvinceCodeCode());
|
|
|
+ System.out.println(result.get(0).getProvinceCode());
|
|
|
+ System.out.println(result.get(0).getProvinceName());
|
|
|
+ System.out.println(result.get(0).getProvinceCodeCode());
|
|
|
+
|
|
|
+ for (AreaUserResult areaUserResult : result) {
|
|
|
+ Map<String, Object> unknownFields = areaUserResult.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@Order(8)
|
|
|
public void orderId() {
|
|
|
- OrderIdResult orderIdResult = taiKangHttpService.orderId();
|
|
|
+ OrderIdResult result = taiKangHttpService.orderId();
|
|
|
+
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
- System.out.println(orderIdResult.getOrderId());
|
|
|
+ System.out.println(result.getOrderId());
|
|
|
|
|
|
- orderID = orderIdResult.getOrderId();
|
|
|
+ Map<String, Object> unknownFields = result.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
+
|
|
|
+ orderID = result.getOrderId();
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -206,11 +283,19 @@ public class TaiKangHttpServiceTest {
|
|
|
//carModelinfoQueryParam.setFromId("67107");
|
|
|
carModelinfoQueryParam.setTplatLoginKey("1e6cbb3bf08e8cb8f8c684cff0ee5e161");
|
|
|
|
|
|
- CarModelinfoQueryResult carModelinfoQueryResult = taiKangHttpService.carModelinfoQuery(carModelinfoQueryParam);
|
|
|
+ CarModelinfoQueryResult result = taiKangHttpService.carModelinfoQuery(carModelinfoQueryParam);
|
|
|
+
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
System.out.println();
|
|
|
- System.out.println(JSON.toJSONString(carModelinfoQueryResult));
|
|
|
+ System.out.println(JSON.toJSONString(result));
|
|
|
+
|
|
|
+ Map<String, Object> unknownFields = result.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -275,11 +360,19 @@ public class TaiKangHttpServiceTest {
|
|
|
//carModelinfoQueryParam.setFromId("67107");
|
|
|
carModelinfoQueryParam.setTplatLoginKey("1e6cbb3bf08e8cb8f8c684cff0ee5e161");
|
|
|
|
|
|
- CarModelinfoQueryResult carModelinfoQueryResult = taiKangHttpService.carModelinfoQuery(carModelinfoQueryParam);
|
|
|
+ CarModelinfoQueryResult result = taiKangHttpService.carModelinfoQuery(carModelinfoQueryParam);
|
|
|
+
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
System.out.println();
|
|
|
- System.out.println(JSON.toJSONString(carModelinfoQueryResult));
|
|
|
+ System.out.println(JSON.toJSONString(result));
|
|
|
+
|
|
|
+ Map<String, Object> unknownFields = result.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -547,35 +640,53 @@ public class TaiKangHttpServiceTest {
|
|
|
param.setFromId("67107");
|
|
|
|
|
|
|
|
|
- SaveBasicInfoResult saveBasicInfoResult = taiKangHttpService.saveBasicInfo(param);
|
|
|
+ SaveBasicInfoResult result = taiKangHttpService.saveBasicInfo(param);
|
|
|
|
|
|
|
|
|
- assertNotNull(saveBasicInfoResult);
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
- System.out.println(JSON.toJSONString(saveBasicInfoResult));
|
|
|
+ System.out.println(JSON.toJSONString(result));
|
|
|
+
|
|
|
+ Map<String, Object> unknownFields = result.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@Order(12)
|
|
|
public void initQuote() {
|
|
|
- InitQuoteResult initQuoteResult = taiKangHttpService.initQuote("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503061106595800000");
|
|
|
+ InitQuoteResult result = taiKangHttpService.initQuote("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503061106595800000");
|
|
|
|
|
|
- assertNotNull(initQuoteResult);
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
- System.out.println(JSON.toJSONString(initQuoteResult));
|
|
|
+ System.out.println(JSON.toJSONString(result));
|
|
|
+
|
|
|
+ Map<String, Object> unknownFields = result.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@Order(13)
|
|
|
public void preciseInit1() {
|
|
|
- PreciseInitResult preciseInitResult = taiKangHttpService.preciseInit("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503061106595800000", null);
|
|
|
+ PreciseInitResult result = taiKangHttpService.preciseInit("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503061106595800000", null);
|
|
|
|
|
|
- assertNotNull(preciseInitResult);
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
- System.out.println(JSON.toJSONString(preciseInitResult));
|
|
|
+ System.out.println(JSON.toJSONString(result));
|
|
|
+
|
|
|
+ Map<String, Object> unknownFields = result.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -591,23 +702,35 @@ public class TaiKangHttpServiceTest {
|
|
|
chgOwnerInfo.setInstantInureFlagBI("0");
|
|
|
chgOwnerInfo.setTransferDate("2025-03-04");
|
|
|
|
|
|
- PreciseInitResult preciseInitResult = taiKangHttpService.preciseInit("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503061106595800000", chgOwnerInfo);
|
|
|
+ PreciseInitResult result = taiKangHttpService.preciseInit("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503061106595800000", chgOwnerInfo);
|
|
|
|
|
|
- assertNotNull(preciseInitResult);
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
- System.out.println(JSON.toJSONString(preciseInitResult));
|
|
|
+ System.out.println(JSON.toJSONString(result));
|
|
|
+
|
|
|
+ Map<String, Object> unknownFields = result.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@Order(14)
|
|
|
public void agentTax() {
|
|
|
- AgentTaxResult agentTaxResult = taiKangHttpService.agentTax("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503061106595800000");
|
|
|
+ AgentTaxResult result = taiKangHttpService.agentTax("feda77e829d4dedbbd8b4e236bacfac5", "WBPC202503061106595800000");
|
|
|
|
|
|
- assertNotNull(agentTaxResult);
|
|
|
+ assertNotNull(result);
|
|
|
|
|
|
System.out.println();
|
|
|
- System.out.println(JSON.toJSONString(agentTaxResult));
|
|
|
+ System.out.println(JSON.toJSONString(result));
|
|
|
+
|
|
|
+ Map<String, Object> unknownFields = result.getUnknownFields();
|
|
|
+
|
|
|
+ System.out.println("unknownFields: " + JSON.toJSONString(unknownFields));
|
|
|
+
|
|
|
+ assertNull(unknownFields);
|
|
|
}
|
|
|
|
|
|
}
|