@Test public void testSerializationForInstanceCreation() throws Exception { final Warehouse warehouse = new Warehouse("New ADS", "Your-ADS-Token", "ADS Description"); warehouse.setEnvironment(Environment.TESTING); assertThat(warehouse, jsonEquals(resource("warehouse/warehouse-create.json"))); }
public void setEnvironment(final String environment) { this.environment = environment; }
Warehouse { public void setEnvironment(final String environment) { this.environment = environment; } }
Warehouse { public void setEnvironment(final String environment) { this.environment = environment; } Warehouse(String title, String authToken);  Warehouse(String title, String authToken, String description);  Warehouse(String title, String authToken, String description, ZonedDateTime created, ZonedDateTime updated,
                     String createdBy, String updatedBy, String status, String environment, String connectionUrl,
                     Map<String, String> links); @JsonCreator  Warehouse(@JsonProperty("title") String title, @JsonProperty("authorizationToken") String authToken,
                     @JsonProperty("description") String description,
                     @JsonProperty("created") ZonedDateTime created,
                     @JsonProperty("updated") ZonedDateTime updated,
                     @JsonProperty("createdBy") String createdBy, @JsonProperty("updatedBy") String updatedBy,
                     @JsonProperty("status") String status, @JsonProperty("environment") String environment,
                     @JsonProperty("connectionUrl") String connectionUrl,
                     @JsonProperty("links") Map<String, String> links,
                     @JsonProperty("license") String license); }
Warehouse { public void setEnvironment(final String environment) { this.environment = environment; } Warehouse(String title, String authToken);  Warehouse(String title, String authToken, String description);  Warehouse(String title, String authToken, String description, ZonedDateTime created, ZonedDateTime updated,
                     String createdBy, String updatedBy, String status, String environment, String connectionUrl,
                     Map<String, String> links); @JsonCreator  Warehouse(@JsonProperty("title") String title, @JsonProperty("authorizationToken") String authToken,
                     @JsonProperty("description") String description,
                     @JsonProperty("created") ZonedDateTime created,
                     @JsonProperty("updated") ZonedDateTime updated,
                     @JsonProperty("createdBy") String createdBy, @JsonProperty("updatedBy") String updatedBy,
                     @JsonProperty("status") String status, @JsonProperty("environment") String environment,
                     @JsonProperty("connectionUrl") String connectionUrl,
                     @JsonProperty("links") Map<String, String> links,
                     @JsonProperty("license") String license); String getTitle(); String getAuthorizationToken(); String getDescription(); String getConnectionUrl(); void setTitle(String title); void setDescription(String description); ZonedDateTime getCreated(); ZonedDateTime getUpdated(); String getCreatedBy(); String getUpdatedBy(); String getStatus(); String getEnvironment(); void setEnvironment(final String environment); String getLicense(); @JsonIgnore void setEnvironment(final Environment environment); Map<String, String> getLinks(); @JsonIgnore String getUri(); @JsonIgnore String getId(); @JsonIgnore boolean isEnabled(); @Override String toString(); }
Warehouse { public void setEnvironment(final String environment) { this.environment = environment; } Warehouse(String title, String authToken);  Warehouse(String title, String authToken, String description);  Warehouse(String title, String authToken, String description, ZonedDateTime created, ZonedDateTime updated,
                     String createdBy, String updatedBy, String status, String environment, String connectionUrl,
                     Map<String, String> links); @JsonCreator  Warehouse(@JsonProperty("title") String title, @JsonProperty("authorizationToken") String authToken,
                     @JsonProperty("description") String description,
                     @JsonProperty("created") ZonedDateTime created,
                     @JsonProperty("updated") ZonedDateTime updated,
                     @JsonProperty("createdBy") String createdBy, @JsonProperty("updatedBy") String updatedBy,
                     @JsonProperty("status") String status, @JsonProperty("environment") String environment,
                     @JsonProperty("connectionUrl") String connectionUrl,
                     @JsonProperty("links") Map<String, String> links,
                     @JsonProperty("license") String license); String getTitle(); String getAuthorizationToken(); String getDescription(); String getConnectionUrl(); void setTitle(String title); void setDescription(String description); ZonedDateTime getCreated(); ZonedDateTime getUpdated(); String getCreatedBy(); String getUpdatedBy(); String getStatus(); String getEnvironment(); void setEnvironment(final String environment); String getLicense(); @JsonIgnore void setEnvironment(final Environment environment); Map<String, String> getLinks(); @JsonIgnore String getUri(); @JsonIgnore String getId(); @JsonIgnore boolean isEnabled(); @Override String toString(); static final String URI; }