From a72a67dcb6c716380ba892a35d13a19305159d3f Mon Sep 17 00:00:00 2001 From: Arjo Chakravarty Date: Sun, 7 Oct 2018 11:21:14 +0800 Subject: [PATCH] updated unit tests --- test/java/seedu/addressbook/common/UtilsTest.java | 5 +++++ 1 file changed, 5 insertions(+) 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))); }