예제 #1
0
  @Test
  public void shouldGetNonEmptyRelationshipsList() {
    Die die = UDie.with(name, faces);

    Iterable<Relationship> rels = die.listRelationships();

    assertThat(rels, is(notEmptyCollection()));
  }
예제 #2
0
  // public Iterable<Relationship> listRelationships() ***********************
  @Test
  public void shouldGetNonNullRelationshipsList() {
    Die die = UDie.with(name, faces);

    Iterable<Relationship> rels = die.listRelationships();

    assertNotNull(rels);
  }
예제 #3
0
  // Iterator<Face> iterator() ***********************************************
  @Test
  public void shouldGetNonNullIterator() {
    Die die = UDie.with(name, faces);

    Iterator<Face> iter = die.iterator();

    assertNotNull(iter);
  }
예제 #4
0
 @Test
 public void shouldReturnProperUDie() {
   assertNotNull(UDie.with(name, faces));
 }
예제 #5
0
 @Test
 public void shouldThrowIllegalArgumentExceptionWithNullArguments() {
   assertThrows(IllegalArgumentException.class, () -> UDie.with(null, null));
 }