@@ -454,30 +454,6 @@ public void testIsInWhenWithSomeValues() {
454
454
}
455
455
}
456
456
457
- /**
458
- * Delete this test when the deprecated method is deleted
459
- */
460
- @ Test
461
- @ Deprecated
462
- public void testIsInWhenWithSomeValuesDeprecated () {
463
- try (SqlSession sqlSession = sqlSessionFactory .openSession ()) {
464
- AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
465
- SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
466
- .from (animalData )
467
- .where (id , isIn (3 , NULL_INTEGER , 5 ).withValueStreamOperations (s -> s .filter (Objects ::nonNull ).map (i -> i + 3 )))
468
- .orderBy (id )
469
- .build ()
470
- .render (RenderingStrategy .MYBATIS3 );
471
- List <AnimalData > animals = mapper .selectMany (selectStatement );
472
- assertAll (
473
- () -> assertThat (selectStatement .getSelectStatement ()).isEqualTo ("select id, animal_name, body_weight, brain_weight from AnimalData where id in (#{parameters.p1,jdbcType=INTEGER},#{parameters.p2,jdbcType=INTEGER}) order by id" ),
474
- () -> assertThat (animals .size ()).isEqualTo (2 ),
475
- () -> assertThat (animals .get (0 ).getId ()).isEqualTo (6 ),
476
- () -> assertThat (animals .get (1 ).getId ()).isEqualTo (8 )
477
- );
478
- }
479
- }
480
-
481
457
@ Test
482
458
public void testIsInCaseInsensitiveWhenWithValue () {
483
459
try (SqlSession sqlSession = sqlSessionFactory .openSession ()) {
@@ -557,29 +533,6 @@ public void testIsInCaseInsensitiveWhenWithSomeValues() {
557
533
}
558
534
}
559
535
560
- /**
561
- * Delete this test when the deprecated method is deleted
562
- */
563
- @ Test
564
- @ Deprecated
565
- public void testIsInCaseInsensitiveWhenWithSomeValuesDeprecated () {
566
- try (SqlSession sqlSession = sqlSessionFactory .openSession ()) {
567
- AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
568
- SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
569
- .from (animalData )
570
- .where (animalName , isInCaseInsensitive ("mouse" , null , "musk shrew" ).withValueStreamOperations (s -> s .filter (Objects ::nonNull )))
571
- .orderBy (id )
572
- .build ()
573
- .render (RenderingStrategy .MYBATIS3 );
574
- List <AnimalData > animals = mapper .selectMany (selectStatement );
575
- assertAll (
576
- () -> assertThat (selectStatement .getSelectStatement ()).isEqualTo ("select id, animal_name, body_weight, brain_weight from AnimalData where upper(animal_name) in (#{parameters.p1,jdbcType=VARCHAR},#{parameters.p2,jdbcType=VARCHAR}) order by id" ),
577
- () -> assertThat (animals .size ()).isEqualTo (2 ),
578
- () -> assertThat (animals .get (0 ).getId ()).isEqualTo (4 )
579
- );
580
- }
581
- }
582
-
583
536
@ Test
584
537
public void testIsInCaseInsensitiveWhenWithNoValues () {
585
538
try (SqlSession sqlSession = sqlSessionFactory .openSession ()) {
@@ -640,30 +593,6 @@ public void testIsNotInWhenWithSomeValues() {
640
593
}
641
594
}
642
595
643
- /**
644
- * Delete this test when the deprecated method is deleted
645
- */
646
- @ Test
647
- @ Deprecated
648
- public void testIsNotInWhenWithSomeValuesDeprecated () {
649
- try (SqlSession sqlSession = sqlSessionFactory .openSession ()) {
650
- AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
651
- SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
652
- .from (animalData )
653
- .where (id , isNotIn (3 , NULL_INTEGER , 5 ).withValueStreamOperations (s -> s .filter (Objects ::nonNull )))
654
- .and (id , isLessThanOrEqualTo (10 ))
655
- .orderBy (id )
656
- .build ()
657
- .render (RenderingStrategy .MYBATIS3 );
658
- List <AnimalData > animals = mapper .selectMany (selectStatement );
659
- assertAll (
660
- () -> assertThat (selectStatement .getSelectStatement ()).isEqualTo ("select id, animal_name, body_weight, brain_weight from AnimalData where id not in (#{parameters.p1,jdbcType=INTEGER},#{parameters.p2,jdbcType=INTEGER}) and id <= #{parameters.p3,jdbcType=INTEGER} order by id" ),
661
- () -> assertThat (animals .size ()).isEqualTo (8 ),
662
- () -> assertThat (animals .get (0 ).getId ()).isEqualTo (1 )
663
- );
664
- }
665
- }
666
-
667
596
@ Test
668
597
public void testIsNotInCaseInsensitiveWhenWithValue () {
669
598
try (SqlSession sqlSession = sqlSessionFactory .openSession ()) {
@@ -704,30 +633,6 @@ public void testIsNotInCaseInsensitiveWhenWithSomeValues() {
704
633
}
705
634
}
706
635
707
- /**
708
- * Delete this test when the deprecated method is deleted
709
- */
710
- @ Test
711
- @ Deprecated
712
- public void testIsNotInCaseInsensitiveWhenWithSomeValuesDeprecated () {
713
- try (SqlSession sqlSession = sqlSessionFactory .openSession ()) {
714
- AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
715
- SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
716
- .from (animalData )
717
- .where (animalName , isNotInCaseInsensitive ("mouse" , null , "musk shrew" ).withValueStreamOperations (s -> s .filter (Objects ::nonNull )))
718
- .and (id , isLessThanOrEqualTo (10 ))
719
- .orderBy (id )
720
- .build ()
721
- .render (RenderingStrategy .MYBATIS3 );
722
- List <AnimalData > animals = mapper .selectMany (selectStatement );
723
- assertAll (
724
- () -> assertThat (selectStatement .getSelectStatement ()).isEqualTo ("select id, animal_name, body_weight, brain_weight from AnimalData where upper(animal_name) not in (#{parameters.p1,jdbcType=VARCHAR},#{parameters.p2,jdbcType=VARCHAR}) and id <= #{parameters.p3,jdbcType=INTEGER} order by id" ),
725
- () -> assertThat (animals .size ()).isEqualTo (8 ),
726
- () -> assertThat (animals .get (0 ).getId ()).isEqualTo (1 )
727
- );
728
- }
729
- }
730
-
731
636
@ Test
732
637
public void testIsNotInCaseInsensitiveWhenWithNoValues () {
733
638
try (SqlSession sqlSession = sqlSessionFactory .openSession ()) {
0 commit comments