aboutsummaryrefslogtreecommitdiffstats
path: root/predicate-search-core/src/test/java/com/yahoo/document/predicate/PredicatesTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'predicate-search-core/src/test/java/com/yahoo/document/predicate/PredicatesTest.java')
-rw-r--r--predicate-search-core/src/test/java/com/yahoo/document/predicate/PredicatesTest.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/predicate-search-core/src/test/java/com/yahoo/document/predicate/PredicatesTest.java b/predicate-search-core/src/test/java/com/yahoo/document/predicate/PredicatesTest.java
index c8cd3f776c8..a40e577fae5 100644
--- a/predicate-search-core/src/test/java/com/yahoo/document/predicate/PredicatesTest.java
+++ b/predicate-search-core/src/test/java/com/yahoo/document/predicate/PredicatesTest.java
@@ -1,14 +1,14 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.document.predicate;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static com.yahoo.document.predicate.Predicates.and;
import static com.yahoo.document.predicate.Predicates.feature;
import static com.yahoo.document.predicate.Predicates.not;
import static com.yahoo.document.predicate.Predicates.or;
import static com.yahoo.document.predicate.Predicates.value;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Simon Thoresen Hult
@@ -16,21 +16,21 @@ import static org.junit.Assert.assertEquals;
public class PredicatesTest {
@Test
- public void requireThatApiIsUsable() {
+ void requireThatApiIsUsable() {
assertEquals(
new Disjunction(
new Conjunction(new FeatureSet("country", "de", "no"),
- new Negation(new FeatureSet("gender", "female")),
- new FeatureRange("age", 6L, 9L)),
+ new Negation(new FeatureSet("gender", "female")),
+ new FeatureRange("age", 6L, 9L)),
new Conjunction(new Negation(new FeatureSet("country", "se")),
- new FeatureSet("gender", "female"),
- new FeatureRange("age", 69L, null))),
+ new FeatureSet("gender", "female"),
+ new FeatureRange("age", 69L, null))),
or(and(feature("country").inSet("de", "no"),
- feature("gender").notInSet("female"),
- feature("age").inRange(6, 9)),
- and(not(feature("country").inSet("se")),
- feature("gender").inSet("female"),
- feature("age").greaterThanOrEqualTo(69))));
+ feature("gender").notInSet("female"),
+ feature("age").inRange(6, 9)),
+ and(not(feature("country").inSet("se")),
+ feature("gender").inSet("female"),
+ feature("age").greaterThanOrEqualTo(69))));
assertEquals(new BooleanPredicate(true), value(true));
assertEquals(new BooleanPredicate(false), value(false));