@@ -672,7 +672,7 @@ void testInConditionWithEventuallyEmptyList() {
672
672
673
673
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
674
674
.from (animalData )
675
- .where (id , isIn (null , 22 , null ). filter ( Objects :: nonNull ).filter (i -> i != 22 ))
675
+ .where (id , isInWhenPresent (null , 22 , null ).filter (i -> i != 22 ))
676
676
.configureStatement (c -> c .setNonRenderingWhereClauseAllowed (true ))
677
677
.build ()
678
678
.render (RenderingStrategies .MYBATIS3 );
@@ -694,6 +694,7 @@ void testInConditionWithEventuallyEmptyListForceRendering() {
694
694
SelectModel selectModel = select (id , animalName , bodyWeight , brainWeight )
695
695
.from (animalData )
696
696
.where (id , isIn (inValues ).filter (Objects ::nonNull ).filter (i -> i != 22 ))
697
+ .configureStatement (c -> c .setEmptyListConditionRenderingAllowed (false ))
697
698
.build ();
698
699
699
700
assertThatExceptionOfType (NonRenderingWhereClauseException .class ).isThrownBy (() ->
@@ -706,6 +707,7 @@ void testInConditionWithEmptyList() {
706
707
SelectModel selectModel = select (id , animalName , bodyWeight , brainWeight )
707
708
.from (animalData )
708
709
.where (id , isIn (Collections .emptyList ()))
710
+ .configureStatement (c -> c .setEmptyListConditionRenderingAllowed (false ))
709
711
.build ();
710
712
711
713
assertThatExceptionOfType (NonRenderingWhereClauseException .class ).isThrownBy (() ->
@@ -784,7 +786,7 @@ void testNotInConditionWithEventuallyEmptyList() {
784
786
785
787
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
786
788
.from (animalData )
787
- .where (id , isNotIn (null , 22 , null ). filter ( Objects :: nonNull ).filter (i -> i != 22 ))
789
+ .where (id , isNotInWhenPresent (null , 22 , null ).filter (i -> i != 22 ))
788
790
.configureStatement (c -> c .setNonRenderingWhereClauseAllowed (true ))
789
791
.build ()
790
792
.render (RenderingStrategies .MYBATIS3 );
@@ -802,6 +804,7 @@ void testNotInConditionWithEventuallyEmptyListForceRendering() {
802
804
.from (animalData )
803
805
.where (id , isNotIn (null , 22 , null )
804
806
.filter (Objects ::nonNull ).filter (i -> i != 22 ))
807
+ .configureStatement (c -> c .setEmptyListConditionRenderingAllowed (false ))
805
808
.build ();
806
809
807
810
assertThatExceptionOfType (NonRenderingWhereClauseException .class ).isThrownBy (() ->
0 commit comments