mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-02 04:29:48 +08:00
🎨 批量格式化部分代码
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user