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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user