@Override public void write(JSONStringer writer) throws JSONException { JSONUtils.write(writer, ID, getId()); JSONUtils.write(writer, VER, getVer()); JSONUtils.write(writer, NAME, getName()); JSONUtils.write(writer, LOCALE, getLocale()); JSONUtils.write(writer, USER_ID, getUserId()); }
assertNotNull(commonSchemaLog.getExt().getApp()); assertEquals("1.0.0", commonSchemaLog.getExt().getApp().getVer()); assertEquals("a:com.appcenter.test", commonSchemaLog.getExt().getApp().getId()); assertNotNull(commonSchemaLog.getExt().getNet()); assertEquals("carrierName", commonSchemaLog.getExt().getNet().getProvider());