DATAES-328 - Adapt to API changes in Spring Data Commons.

This commit is contained in:
Mark Paluch
2017-03-23 11:36:34 +01:00
parent 5f3bacf950
commit 519a2a11a4
8 changed files with 17 additions and 17 deletions

View File

@@ -84,7 +84,7 @@ public class DefaultResultMapperTests {
when(response.getAggregations()).thenReturn(aggregations);
//When
AggregatedPage<Car> page = (AggregatedPage<Car>) resultMapper.mapResults(response, Car.class, Pageable.NONE);
AggregatedPage<Car> page = (AggregatedPage<Car>) resultMapper.mapResults(response, Car.class, Pageable.unpaged());
//Then
page.hasFacets();
@@ -102,7 +102,7 @@ public class DefaultResultMapperTests {
when(response.getHits()).thenReturn(searchHits);
//When
Page<Car> page = resultMapper.mapResults(response, Car.class, Pageable.NONE);
Page<Car> page = resultMapper.mapResults(response, Car.class, Pageable.unpaged());
//Then
assertThat(page.hasContent(), is(true));
@@ -120,7 +120,7 @@ public class DefaultResultMapperTests {
when(response.getHits()).thenReturn(searchHits);
//When
Page<Car> page = resultMapper.mapResults(response, Car.class, Pageable.NONE);
Page<Car> page = resultMapper.mapResults(response, Car.class, Pageable.unpaged());
//Then
assertThat(page.hasContent(), is(true));