@Test public void testSerialization() { final Account account = new Account(FIRST_NAME, LAST_NAME, null); account.setIpWhitelist(Arrays.asList("1.2.3.4/32")); assertThat(account, jsonEquals(resource("account/account-input.json"))); }
public void setIpWhitelist(final List<String> ipWhitelist) { this.ipWhitelist = ipWhitelist; }
Account { public void setIpWhitelist(final List<String> ipWhitelist) { this.ipWhitelist = ipWhitelist; } }
Account { public void setIpWhitelist(final List<String> ipWhitelist) { this.ipWhitelist = ipWhitelist; } @JsonCreator private  Account(
            @JsonProperty("login") String login,
            @JsonProperty("email") String email,
            @JsonProperty("password") String password,
            @JsonProperty("verifyPassword") String verifyPassword,
            @JsonProperty("firstName") String firstName,
            @JsonProperty("lastName") String lastName,
            @JsonProperty("ipWhitelist") List<String> ipWhitelist,
            @JsonProperty("links") Links links
    );  Account(String firstName, String lastName, Links links);  Account(String email, String password, String firstName, String lastName); }
Account { public void setIpWhitelist(final List<String> ipWhitelist) { this.ipWhitelist = ipWhitelist; } @JsonCreator private  Account(
            @JsonProperty("login") String login,
            @JsonProperty("email") String email,
            @JsonProperty("password") String password,
            @JsonProperty("verifyPassword") String verifyPassword,
            @JsonProperty("firstName") String firstName,
            @JsonProperty("lastName") String lastName,
            @JsonProperty("ipWhitelist") List<String> ipWhitelist,
            @JsonProperty("links") Links links
    );  Account(String firstName, String lastName, Links links);  Account(String email, String password, String firstName, String lastName); String getLogin(); String getEmail(); String getPassword(); String getVerifyPassword(); String getFirstName(); String getLastName(); @JsonIgnore String getUri(); @JsonIgnore String getProjectsUri(); @JsonIgnore String getId(); List<String> getIpWhitelist(); void setEmail(final String email); void setPassword(final String password); void setVerifyPassword(final String verifyPassword); void setFirstName(final String firstName); void setLastName(final String lastName); void setIpWhitelist(final List<String> ipWhitelist); static String getId(String uri); @Override String toString(); }
Account { public void setIpWhitelist(final List<String> ipWhitelist) { this.ipWhitelist = ipWhitelist; } @JsonCreator private  Account(
            @JsonProperty("login") String login,
            @JsonProperty("email") String email,
            @JsonProperty("password") String password,
            @JsonProperty("verifyPassword") String verifyPassword,
            @JsonProperty("firstName") String firstName,
            @JsonProperty("lastName") String lastName,
            @JsonProperty("ipWhitelist") List<String> ipWhitelist,
            @JsonProperty("links") Links links
    );  Account(String firstName, String lastName, Links links);  Account(String email, String password, String firstName, String lastName); String getLogin(); String getEmail(); String getPassword(); String getVerifyPassword(); String getFirstName(); String getLastName(); @JsonIgnore String getUri(); @JsonIgnore String getProjectsUri(); @JsonIgnore String getId(); List<String> getIpWhitelist(); void setEmail(final String email); void setPassword(final String password); void setVerifyPassword(final String verifyPassword); void setFirstName(final String firstName); void setLastName(final String lastName); void setIpWhitelist(final List<String> ipWhitelist); static String getId(String uri); @Override String toString(); static final String URI; static final String ACCOUNTS_URI; static final String LOGIN_URI; static final String CURRENT_ID; }