@Test public void shouldDeserialize() throws Exception { final Uploads uploads = readObjectFromResource("/dataset/uploads/uploads.json", Uploads.class); assertThat(uploads, notNullValue()); assertThat(uploads.items(), not(Matchers.empty())); assertThat(uploads.items().size(), is(2)); }
public Collection<Upload> items() { return uploads; }
Uploads { public Collection<Upload> items() { return uploads; } }
Uploads { public Collection<Upload> items() { return uploads; } Uploads(@JsonProperty("uploads") Collection<Upload> uploads); }
Uploads { public Collection<Upload> items() { return uploads; } Uploads(@JsonProperty("uploads") Collection<Upload> uploads); Collection<Upload> items(); @Override String toString(); }
Uploads { public Collection<Upload> items() { return uploads; } Uploads(@JsonProperty("uploads") Collection<Upload> uploads); Collection<Upload> items(); @Override String toString();  }