@Test public void testToJson() throws Exception { final XmppAccountConfiguration expected = newTestConfiguration(); final XmppAccountConfiguration actual = toAndFromJson(expected); assertTrue(expected.isSame(actual)); }
@Override public boolean isSame(AccountConfiguration c) { boolean same = isSameCredentials(c); if (same) { final XmppAccountConfiguration that = (XmppAccountConfiguration) c; if (!this.resource.equals(that.resource)) { return false; } if (!this.securityMode.equals(that.securityMode)) { return false; } if (this.useLoginWithDomain != that.useLoginWithDomain) { return false; } } return same; }
XmppAccountConfiguration extends JObject implements AccountConfiguration { @Override public boolean isSame(AccountConfiguration c) { boolean same = isSameCredentials(c); if (same) { final XmppAccountConfiguration that = (XmppAccountConfiguration) c; if (!this.resource.equals(that.resource)) { return false; } if (!this.securityMode.equals(that.securityMode)) { return false; } if (this.useLoginWithDomain != that.useLoginWithDomain) { return false; } } return same; } }
XmppAccountConfiguration extends JObject implements AccountConfiguration { @Override public boolean isSame(AccountConfiguration c) { boolean same = isSameCredentials(c); if (same) { final XmppAccountConfiguration that = (XmppAccountConfiguration) c; if (!this.resource.equals(that.resource)) { return false; } if (!this.securityMode.equals(that.securityMode)) { return false; } if (this.useLoginWithDomain != that.useLoginWithDomain) { return false; } } return same; } XmppAccountConfiguration();  XmppAccountConfiguration(@Nonnull String server, @Nonnull String login, @Nonnull String password); }
XmppAccountConfiguration extends JObject implements AccountConfiguration { @Override public boolean isSame(AccountConfiguration c) { boolean same = isSameCredentials(c); if (same) { final XmppAccountConfiguration that = (XmppAccountConfiguration) c; if (!this.resource.equals(that.resource)) { return false; } if (!this.securityMode.equals(that.securityMode)) { return false; } if (this.useLoginWithDomain != that.useLoginWithDomain) { return false; } } return same; } XmppAccountConfiguration();  XmppAccountConfiguration(@Nonnull String server, @Nonnull String login, @Nonnull String password); @Nonnull String getAccountUserId(); @Nullable String getDomain(); @Nonnull String getServer(); @Nonnull String getLogin(); @Nonnull String getLoginForConnection(); @Nonnull String getPassword(); @Nonnull XmppSecurityMode getSecurityMode(); void setSecurityMode(@Nonnull XmppSecurityMode securityMode); boolean isUseLoginWithDomain(); void setUseLoginWithDomain(boolean useLoginWithDomain); @Nonnull String getResource(); @Nonnull Integer getPort(); @Nonnull AndroidConnectionConfiguration toXmppConfiguration(); @Override boolean isSameAccount(AccountConfiguration c); @Override boolean isSameCredentials(AccountConfiguration c); @Override boolean isSame(AccountConfiguration c); @Override void applySystemData(AccountConfiguration oldConfiguration); @Nonnull static XmppAccountConfiguration fromJson(@Nonnull String json); @Nonnull @Override XmppAccountConfiguration clone(); void setPassword(@Nonnull String password); @Nullable static String getAfterAt(@Nonnull String s); @Nonnull static String getBeforeAt(@Nonnull String s); }
XmppAccountConfiguration extends JObject implements AccountConfiguration { @Override public boolean isSame(AccountConfiguration c) { boolean same = isSameCredentials(c); if (same) { final XmppAccountConfiguration that = (XmppAccountConfiguration) c; if (!this.resource.equals(that.resource)) { return false; } if (!this.securityMode.equals(that.securityMode)) { return false; } if (this.useLoginWithDomain != that.useLoginWithDomain) { return false; } } return same; } XmppAccountConfiguration();  XmppAccountConfiguration(@Nonnull String server, @Nonnull String login, @Nonnull String password); @Nonnull String getAccountUserId(); @Nullable String getDomain(); @Nonnull String getServer(); @Nonnull String getLogin(); @Nonnull String getLoginForConnection(); @Nonnull String getPassword(); @Nonnull XmppSecurityMode getSecurityMode(); void setSecurityMode(@Nonnull XmppSecurityMode securityMode); boolean isUseLoginWithDomain(); void setUseLoginWithDomain(boolean useLoginWithDomain); @Nonnull String getResource(); @Nonnull Integer getPort(); @Nonnull AndroidConnectionConfiguration toXmppConfiguration(); @Override boolean isSameAccount(AccountConfiguration c); @Override boolean isSameCredentials(AccountConfiguration c); @Override boolean isSame(AccountConfiguration c); @Override void applySystemData(AccountConfiguration oldConfiguration); @Nonnull static XmppAccountConfiguration fromJson(@Nonnull String json); @Nonnull @Override XmppAccountConfiguration clone(); void setPassword(@Nonnull String password); @Nullable static String getAfterAt(@Nonnull String s); @Nonnull static String getBeforeAt(@Nonnull String s);  }