@Test public void testGetData() { JsonApiRelationship result = new JsonApiRelationship(relatedList, testLocation); Assert.assertEquals(2, result.getData().size()); Assert.assertEquals(new JsonApiResourceIdentifier(dummy1), result.getData().get(0)); Assert.assertEquals(new JsonApiResourceIdentifier(anotherDummyClass), result.getData().get(1)); }
public List<JsonApiIdentifiable> getData() { return data; }
JsonApiRelationship { public List<JsonApiIdentifiable> getData() { return data; } }
JsonApiRelationship { public List<JsonApiIdentifiable> getData() { return data; } JsonApiRelationship(JsonApiIdentifiable entity, URI location);   JsonApiRelationship(Collection<? extends JsonApiIdentifiable> entityCollection, URI location); }
JsonApiRelationship { public List<JsonApiIdentifiable> getData() { return data; } JsonApiRelationship(JsonApiIdentifiable entity, URI location);   JsonApiRelationship(Collection<? extends JsonApiIdentifiable> entityCollection, URI location); List<JsonApiIdentifiable> getData(); Map<String, URI> getLinks(); @Override boolean equals(Object o); @Override int hashCode(); }
JsonApiRelationship { public List<JsonApiIdentifiable> getData() { return data; } JsonApiRelationship(JsonApiIdentifiable entity, URI location);   JsonApiRelationship(Collection<? extends JsonApiIdentifiable> entityCollection, URI location); List<JsonApiIdentifiable> getData(); Map<String, URI> getLinks(); @Override boolean equals(Object o); @Override int hashCode();  }