Misc { public static boolean containsNulls(final Collection c) { assert(c != null); for (Object o : c) if (o == null) return true; return false; } private  Misc(); static boolean containsNulls(final Collection c); static boolean doubleEquals(final double a, final double b, final double epsilon); static boolean doubleArrayEquals(final double[] a, final double[] b, final double epsilon);  }
@Test public void testContainsNulls5() { final Collection collection = new ArrayList() {{ add(1); add(2.0); add(1); add(null); }}; assertTrue(Misc.containsNulls(collection)); }
@Test public void testContainsNulls6() { final Collection collection = new ArrayList() {{ add(null); }}; assertTrue(Misc.containsNulls(collection)); }
@Test public void testContainsNulls1() { final Collection collection = new ArrayList() {{ }}; assertFalse(Misc.containsNulls(collection)); }
@Test public void testContainsNulls2() { final Collection collection = new ArrayList() {{ add(1); add(2.0); add(1); add(8.0); }}; assertFalse(Misc.containsNulls(collection)); }
@Test public void testContainsNulls3() { final Collection collection = new ArrayList() {{ add(1); add(2.0); add(null); add(8.0); }}; assertTrue(Misc.containsNulls(collection)); }
@Test public void testContainsNulls4() { final Collection collection = new ArrayList() {{ add(null); add(2.0); add(1); add(8.0); }}; assertTrue(Misc.containsNulls(collection)); }