20
20
21
21
import java .util .List ;
22
22
import java .util .Objects ;
23
- import java .util .function .Function ;
24
23
import java .util .stream .Collectors ;
25
24
26
25
import org .junit .jupiter .api .Test ;
@@ -433,7 +432,7 @@ void testIsInRenderableMapShouldReturnMappedObject() {
433
432
IsIn <String > cond = SqlBuilder .isIn ("Fred" , "Wilma" );
434
433
assertThat (cond .isEmpty ()).isFalse ();
435
434
IsIn <String > mapped = cond .map (String ::toUpperCase );
436
- List <String > mappedValues = mapped .values ().map ( Function . identity ()). collect (Collectors .toList ());
435
+ List <String > mappedValues = mapped .values ().collect (Collectors .toList ());
437
436
assertThat (mappedValues ).containsExactly ("FRED" , "WILMA" );
438
437
}
439
438
@@ -442,31 +441,31 @@ void testIsNotInRenderableMapShouldReturnMappedObject() {
442
441
IsNotIn <String > cond = SqlBuilder .isNotIn ("Fred" , "Wilma" );
443
442
assertThat (cond .isEmpty ()).isFalse ();
444
443
IsNotIn <String > mapped = cond .map (String ::toUpperCase );
445
- List <String > mappedValues = mapped .values ().map ( Function . identity ()). collect (Collectors .toList ());
444
+ List <String > mappedValues = mapped .values ().collect (Collectors .toList ());
446
445
assertThat (mappedValues ).containsExactly ("FRED" , "WILMA" );
447
446
}
448
447
449
448
@ Test
450
449
void testIsNotInCaseInsensitiveRenderableMapShouldReturnMappedObject () {
451
450
IsNotInCaseInsensitive cond = SqlBuilder .isNotInCaseInsensitive ("Fred " , "Wilma " );
452
- List <String > values = cond .values ().map ( Function . identity ()). collect (Collectors .toList ());
451
+ List <String > values = cond .values ().collect (Collectors .toList ());
453
452
assertThat (values ).containsExactly ("FRED " , "WILMA " );
454
453
assertThat (cond .isEmpty ()).isFalse ();
455
454
456
455
IsNotInCaseInsensitive mapped = cond .map (String ::trim );
457
- List <String > mappedValues = mapped .values ().map ( Function . identity ()). collect (Collectors .toList ());
456
+ List <String > mappedValues = mapped .values ().collect (Collectors .toList ());
458
457
assertThat (mappedValues ).containsExactly ("FRED" , "WILMA" );
459
458
}
460
459
461
460
@ Test
462
461
void testIsInCaseInsensitiveRenderableMapShouldReturnMappedObject () {
463
462
IsInCaseInsensitive cond = SqlBuilder .isInCaseInsensitive ("Fred " , "Wilma " );
464
- List <String > values = cond .values ().map ( Function . identity ()). collect (Collectors .toList ());
463
+ List <String > values = cond .values ().collect (Collectors .toList ());
465
464
assertThat (values ).containsExactly ("FRED " , "WILMA " );
466
465
assertThat (cond .isEmpty ()).isFalse ();
467
466
468
467
IsInCaseInsensitive mapped = cond .map (String ::trim );
469
- List <String > mappedValues = mapped .values ().map ( Function . identity ()). collect (Collectors .toList ());
468
+ List <String > mappedValues = mapped .values ().collect (Collectors .toList ());
470
469
assertThat (mappedValues ).containsExactly ("FRED" , "WILMA" );
471
470
}
472
471
0 commit comments