diff --git a/test/java/seedu/addressbook/common/UtilsTest.java b/test/java/seedu/addressbook/common/UtilsTest.java index 23ea62b45..82c6c18ff 100644 --- a/test/java/seedu/addressbook/common/UtilsTest.java +++ b/test/java/seedu/addressbook/common/UtilsTest.java @@ -36,6 +36,11 @@ public void elementsAreUnique() throws Exception { assertNotUnique(null, "a", "b", null); } + @Test + public void testIsAnyNull(){ + assertTrue(Utils.isAnyNull(null, 1, 2, 5)); + assertFalse(Utils.isAnyNull(1, 2, 4, 6)); + } private void assertAreUnique(Object... objects) { assertTrue(Utils.elementsAreUnique(Arrays.asList(objects))); }