@@ -672,7 +672,7 @@ void testInConditionWithEventuallyEmptyList() {
672672
673673 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
674674 .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 ))
676676 .configureStatement (c -> c .setNonRenderingWhereClauseAllowed (true ))
677677 .build ()
678678 .render (RenderingStrategies .MYBATIS3 );
@@ -694,6 +694,7 @@ void testInConditionWithEventuallyEmptyListForceRendering() {
694694 SelectModel selectModel = select (id , animalName , bodyWeight , brainWeight )
695695 .from (animalData )
696696 .where (id , isIn (inValues ).filter (Objects ::nonNull ).filter (i -> i != 22 ))
697+ .configureStatement (c -> c .setEmptyListConditionRenderingAllowed (false ))
697698 .build ();
698699
699700 assertThatExceptionOfType (NonRenderingWhereClauseException .class ).isThrownBy (() ->
@@ -706,6 +707,7 @@ void testInConditionWithEmptyList() {
706707 SelectModel selectModel = select (id , animalName , bodyWeight , brainWeight )
707708 .from (animalData )
708709 .where (id , isIn (Collections .emptyList ()))
710+ .configureStatement (c -> c .setEmptyListConditionRenderingAllowed (false ))
709711 .build ();
710712
711713 assertThatExceptionOfType (NonRenderingWhereClauseException .class ).isThrownBy (() ->
@@ -784,7 +786,7 @@ void testNotInConditionWithEventuallyEmptyList() {
784786
785787 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
786788 .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 ))
788790 .configureStatement (c -> c .setNonRenderingWhereClauseAllowed (true ))
789791 .build ()
790792 .render (RenderingStrategies .MYBATIS3 );
@@ -802,6 +804,7 @@ void testNotInConditionWithEventuallyEmptyListForceRendering() {
802804 .from (animalData )
803805 .where (id , isNotIn (null , 22 , null )
804806 .filter (Objects ::nonNull ).filter (i -> i != 22 ))
807+ .configureStatement (c -> c .setEmptyListConditionRenderingAllowed (false ))
805808 .build ();
806809
807810 assertThatExceptionOfType (NonRenderingWhereClauseException .class ).isThrownBy (() ->
0 commit comments