コード例 #1
0
  @Test
  public void shouldCorrectlyDiscoverIfElementIsInSET() {
    cut.insert(new Point2D(.1, .1));

    assertFalse(cut.contains(new Point2D(.0, .0)));
    assertTrue(cut.contains(new Point2D(.1, .1)));
  }
コード例 #2
0
 @Test(expected = NullPointerException.class)
 public void shouldThrowNullPointerExceptionWhenCheckingIfSETContainsNull() {
   cut.contains(null);
 }