Skip to content

Commit a199827

Browse files
author
nareshwart
committed
fix
1 parent 4e65826 commit a199827

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/java/com/devopsdemo/utilities/TestGenericComparator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,19 +245,19 @@ private Integer writeList(ArrayList s){
245245

246246
@org.junit.jupiter.api.Test
247247
void testCompareEqualObjects() {
248-
GenericComparator comparator = new GenericComparator();
248+
GenericComparator comparator = new GenericComparator(true);
249249
assertEquals(0, comparator.compare("test", "test"));
250250
}
251251

252252
@org.junit.jupiter.api.Test
253253
void testCompareDifferentObjects() {
254-
GenericComparator comparator = new GenericComparator();
254+
GenericComparator comparator = new GenericComparator(true);
255255
assertTrue(comparator.compare(1, 2) < 0);
256256
}
257257

258258
@org.junit.jupiter.api.Test
259259
void testCompareNullObjects() {
260-
GenericComparator comparator = new GenericComparator();
260+
GenericComparator comparator = new GenericComparator(true);
261261
assertThrows(NullPointerException.class, () -> comparator.compare(null, "test"));
262262
assertThrows(NullPointerException.class, () -> comparator.compare("test", null));
263263
}

0 commit comments

Comments
 (0)