DATAKV-115 - Polishing.

Introduced dedicated constructor on SpelCriteria to default the EvaluationContext to StandardEvaluationContext. Switched to ternary if in KeyValuePartTreeQuery for both application of Pageable and Sort. Tweaked unit test to actually compile in Eclipse.

Original pull request: #16.
This commit is contained in:
Oliver Gierke
2016-02-07 17:33:13 +01:00
parent e22ee22e58
commit 40fe2addac
4 changed files with 46 additions and 30 deletions

View File

@@ -63,7 +63,10 @@ public class KeyValuePartTreeQueryUnitTests {
Object[] args = new Object[] { "foo" };
assertThat(query.prepareQuery(args).getCritieria(), not(sameInstance(query.prepareQuery(args).getCritieria())));
Object first = query.prepareQuery(args).getCritieria();
Object second = query.prepareQuery(args).getCritieria();
assertThat(first, not(sameInstance(second)));
}
static interface Repo {