// public Iterable<Relationship> listRelationships() *********************** @Test public void shouldGetNonNullRelationshipsList() { Die die = UDie.with(name, faces); Iterable<Relationship> rels = die.listRelationships(); assertNotNull(rels); }
@Test public void shouldGetNonEmptyRelationshipsList() { Die die = UDie.with(name, faces); Iterable<Relationship> rels = die.listRelationships(); assertThat(rels, is(notEmptyCollection())); }
// Iterator<Face> iterator() *********************************************** @Test public void shouldGetNonNullIterator() { Die die = UDie.with(name, faces); Iterator<Face> iter = die.iterator(); assertNotNull(iter); }