最近的一些修改 #7

Merged
xiaohai2271 merged 37 commits from dev into master 2020-08-01 21:26:46 +08:00
Showing only changes of commit da95470993 - Show all commits

View File

@@ -63,7 +63,7 @@ public class BaseTest {
}; };
protected static final TypeReference<?> STRING_TYPE = new TypeReference<Response<String>>() { protected static final TypeReference<?> STRING_TYPE = new TypeReference<Response<String>>() {
}; };
protected static final TypeReference<?> OBJECT_TYPE = new TypeReference<Response<String>>() { protected static final TypeReference<?> OBJECT_TYPE = new TypeReference<Response<Object>>() {
}; };
protected static final TypeReference<?> MAP_OBJECT_TYPE = new TypeReference<Response<Map<String, Object>>>() { protected static final TypeReference<?> MAP_OBJECT_TYPE = new TypeReference<Response<Map<String, Object>>>() {
}; };
@@ -147,7 +147,7 @@ public class BaseTest {
try { try {
// 测试getMockData方法 // 测试getMockData方法
assertNotNull(getMockData(get("/headerInfo"))); assertNotNull(getMockData(get("/headerInfo")));
getMockData((get("/headerInfo"))).andDo(result -> assertNotNull(getResponse(result))); getMockData((get("/headerInfo"))).andDo(result -> assertNotNull(getResponse(result, OBJECT_TYPE)));
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }