예제 #1
0
 /** Moo */
 @Test
 public void testContainsTrue() {
   words.add("100");
   assertTrue(words.contains("100"));
   words.add("500");
   assertTrue(words.contains("500"));
 }
예제 #2
0
 /** Moo */
 @Test
 public void testContainsFalse() {
   assertFalse(words.contains("0"));
   words.add("100");
   assertFalse(words.contains("0"));
   words.add("200");
   assertFalse(words.contains("500"));
 }
예제 #3
0
 public void add(Rental rental) {
   if (rental == null) return;
   if (list.contains(rental)) return;
   list.add(rental);
 }