DATAREDIS-551 - Polishing.
Fix indentation. Original Pull Request: #220
This commit is contained in:
@@ -157,7 +157,7 @@ class RedisQueryEngine extends QueryEngine<RedisKeyValueAdapter, RedisOperationC
|
||||
@Override
|
||||
public long count(final RedisOperationChain criteria, final Serializable keyspace) {
|
||||
|
||||
if(criteria == null) {
|
||||
if (criteria == null) {
|
||||
return this.getAdapter().count(keyspace);
|
||||
}
|
||||
|
||||
|
||||
@@ -218,8 +218,8 @@ public abstract class RedisRepositoryIntegrationTestBase {
|
||||
repo.save(Arrays.asList(eddard, robb, jon));
|
||||
|
||||
Page<Person> firstPage = repo.findAll(new PageRequest(0, 2));
|
||||
assertThat(firstPage.getContent(), hasSize(2));
|
||||
assertThat(repo.findAll(firstPage.nextPageable()).getContent(), hasSize(1));
|
||||
assertThat(firstPage.getContent(), hasSize(2));
|
||||
assertThat(repo.findAll(firstPage.nextPageable()).getContent(), hasSize(1));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -235,9 +235,9 @@ public abstract class RedisRepositoryIntegrationTestBase {
|
||||
repo.save(Arrays.asList(eddard, robb, jon));
|
||||
|
||||
Page<Person> firstPage = repo.findBy(new PageRequest(0, 2));
|
||||
assertThat(firstPage.getContent(), hasSize(2));
|
||||
assertThat(firstPage.getTotalElements(), is(equalTo(3L)));
|
||||
assertThat(repo.findBy(firstPage.nextPageable()).getContent(), hasSize(1));
|
||||
assertThat(firstPage.getContent(), hasSize(2));
|
||||
assertThat(firstPage.getTotalElements(), is(equalTo(3L)));
|
||||
assertThat(repo.findBy(firstPage.nextPageable()).getContent(), hasSize(1));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user