Ejemplo n.º 1
0
 @Test(expected = NullPointerException.class)
 public void shouldThrowANullPointerExceptionIfIterablePassedToAllIsNull() throws Exception {
   allof(null, always(true));
 }
Ejemplo n.º 2
0
 @Test(expected = NullPointerException.class)
 public void shouldThrowNullPointerExceptionIfPredicateSuppliedToAllIsNull() throws Exception {
   allof(of("a", "b", "c"), null);
 }