@Test public void shouldDeserialize() throws Exception { final Dimension dimension = readObjectFromResource("/md/dimension.json", Dimension.class); assertThat(dimension, is(notNullValue())); final Collection<NestedAttribute> attributes = dimension.getAttributes(); assertThat(attributes, is(notNullValue())); assertThat(attributes, hasSize(2)); }
@JsonIgnore public Collection<NestedAttribute> getAttributes() { return content.getAttributes(); }
Dimension extends AbstractObj implements Queryable, Updatable { @JsonIgnore public Collection<NestedAttribute> getAttributes() { return content.getAttributes(); } }
Dimension extends AbstractObj implements Queryable, Updatable { @JsonIgnore public Collection<NestedAttribute> getAttributes() { return content.getAttributes(); } @JsonCreator private  Dimension(@JsonProperty("meta") Meta meta, @JsonProperty("content") Content content);   Dimension(String title); }
Dimension extends AbstractObj implements Queryable, Updatable { @JsonIgnore public Collection<NestedAttribute> getAttributes() { return content.getAttributes(); } @JsonCreator private  Dimension(@JsonProperty("meta") Meta meta, @JsonProperty("content") Content content);   Dimension(String title); @JsonIgnore Collection<NestedAttribute> getAttributes(); @Override String toString(); }
Dimension extends AbstractObj implements Queryable, Updatable { @JsonIgnore public Collection<NestedAttribute> getAttributes() { return content.getAttributes(); } @JsonCreator private  Dimension(@JsonProperty("meta") Meta meta, @JsonProperty("content") Content content);   Dimension(String title); @JsonIgnore Collection<NestedAttribute> getAttributes(); @Override String toString();  }