File tree Expand file tree Collapse file tree
src/test/java/com/devopsdemo/utilities Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments