From 8a2808ad09970c61b63274e3e5af8bad93e8db7f Mon Sep 17 00:00:00 2001 From: HEMANTH M <128402149+hemanth0525@users.noreply.github.com> Date: Sun, 1 Sep 2024 20:22:01 +0530 Subject: [PATCH] Update tests --- .../java/org/apache/commons/collections4/ListUtilsTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/java/org/apache/commons/collections4/ListUtilsTest.java b/src/test/java/org/apache/commons/collections4/ListUtilsTest.java index 695b4af2fc..3e9922abbe 100644 --- a/src/test/java/org/apache/commons/collections4/ListUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/ListUtilsTest.java @@ -113,9 +113,7 @@ public void testFindDuplicatesWithDuplicates() { @Test public void testFindDuplicatesNoDuplicates() { List input = Arrays.asList(1, 2, 3, 4, 5); - List expected = Arrays.asList(); - List actual = ListUtils.findDuplicates(input); - assertEquals(expected, actual, "The list should be empty as there are no duplicates."); + assertTrue(ListUtils.findDuplicates(input).isEmpty(), "The list should be empty as the input list has no duplicates."); } @Test