🎨 批量格式化部分代码

This commit is contained in:
Binary Wang
2019-09-05 13:59:03 +08:00
parent 8ab4af031a
commit d638b20bf5
26 changed files with 285 additions and 370 deletions

View File

@ -37,14 +37,14 @@ public class WxFastMaAccountBasicInfoResultTest {
" }\n" +
"}";
WxFastMaAccountBasicInfoResult res = WxOpenGsonBuilder.create ().fromJson (json, WxFastMaAccountBasicInfoResult.class);
WxFastMaAccountBasicInfoResult res = WxOpenGsonBuilder.create().fromJson(json, WxFastMaAccountBasicInfoResult.class);
assertNotNull(res);
assertNotNull(res.getAppId ());
assertNotNull(res.getSignatureInfo ().getModifyQuota ());
assertNotNull(res.getHeadImageInfo ().getHeadImageUrl ());
assertNotNull(res.getWxVerifyInfo ().getNamingVerify ());
assertTrue(res.getWxVerifyInfo ().getNamingVerify ());
assertNotNull(res.getAppId());
assertNotNull(res.getSignatureInfo().getModifyQuota());
assertNotNull(res.getHeadImageInfo().getHeadImageUrl());
assertNotNull(res.getWxVerifyInfo().getNamingVerify());
assertTrue(res.getWxVerifyInfo().getNamingVerify());
System.out.println(res);
}

View File

@ -28,12 +28,12 @@ public class WxFastMaBeenSetCategoryResultTest {
" \"category_limit\": 20\n" +
"}";
WxFastMaBeenSetCategoryResult res = WxOpenGsonBuilder.create ().fromJson (json, WxFastMaBeenSetCategoryResult.class);
WxFastMaBeenSetCategoryResult res = WxOpenGsonBuilder.create().fromJson(json, WxFastMaBeenSetCategoryResult.class);
assertNotNull(res);
assertTrue(res.getCategories ().size ()> 0);
assertNotNull(res.getCategories ().get (0));
assertNotNull(res.getCategories ().get (0).getFirstName ());
assertTrue(res.getCategories().size() > 0);
assertNotNull(res.getCategories().get(0));
assertNotNull(res.getCategories().get(0).getFirstName());
System.out.println(res);
}

View File

@ -69,10 +69,10 @@ public class WxFastMaCanSetCategoryResultTest {
" ]\n" +
" }\n" +
"}";
WxFastMaCanSetCategoryResult res = WxOpenGsonBuilder.create ().fromJson (json, WxFastMaCanSetCategoryResult.class);
WxFastMaCanSetCategoryResult res = WxOpenGsonBuilder.create().fromJson(json, WxFastMaCanSetCategoryResult.class);
assertNotNull(res);
assertNotNull(res.getCategoriesList ());
assertNotNull(res.getCategoriesList());
System.out.println(res);
}