@ -102,6 +102,7 @@ import org.springframework.test.jdbc.JdbcTestUtils;
@@ -102,6 +102,7 @@ import org.springframework.test.jdbc.JdbcTestUtils;
* @author Christopher Klein
* @author Mikhail Polivakha
* @author Paul Jones
* @author Christoph Strobl
* /
@IntegrationTest
public class JdbcRepositoryIntegrationTests {
@ -575,6 +576,15 @@ public class JdbcRepositoryIntegrationTests {
@@ -575,6 +576,15 @@ public class JdbcRepositoryIntegrationTests {
assertThat ( repository . findByNameContains ( "a" , Limit . unlimited ( ) ) ) . hasSize ( 3 ) ;
}
@Test // GH-2155
public void selectContainingIgnoreCase ( ) {
repository . saveAll ( Arrays . asList ( new DummyEntity ( "1a1" ) , new DummyEntity ( "1B1" ) , new DummyEntity ( "1c1" ) ) ) ;
Optional < DummyEntity > result = repository . findByNameContainingIgnoreCase ( "b" ) ;
assertThat ( result ) . map ( DummyEntity : : getName ) . contains ( "1B1" ) ;
}
@Test // GH-774
public void sliceByNameShouldReturnCorrectResult ( ) {
@ -1567,6 +1577,8 @@ public class JdbcRepositoryIntegrationTests {
@@ -1567,6 +1577,8 @@ public class JdbcRepositoryIntegrationTests {
List < DummyEntity > findByNameContains ( String name , Limit limit ) ;
Optional < DummyEntity > findByNameContainingIgnoreCase ( String partialName ) ;
Page < DummyProjection > findPageProjectionByName ( String name , Pageable pageable ) ;
Slice < DummyEntity > findSliceByNameContains ( String name , Pageable pageable ) ;