Align with API changes in latest Spring Data Kay snapshots
See gh-7461
This commit is contained in:
@@ -44,7 +44,7 @@ public class CityRepositoryIntegrationTests {
|
||||
@Test
|
||||
public void findsFirstPageOfCities() {
|
||||
|
||||
Page<City> cities = this.repository.findAll(new PageRequest(0, 10));
|
||||
Page<City> cities = this.repository.findAll(PageRequest.of(0, 10));
|
||||
assertThat(cities.getTotalElements()).isGreaterThan(20L);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ public class CityRepositoryIntegrationTests {
|
||||
public void findContaining() {
|
||||
Page<City> cities = this.repository
|
||||
.findByNameContainingAndCountryContainingAllIgnoringCase("", "UK",
|
||||
new PageRequest(0, 10));
|
||||
PageRequest.of(0, 10));
|
||||
assertThat(cities.getTotalElements()).isEqualTo(3L);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user