diff options
Diffstat (limited to 'container-search/src/test/java/com/yahoo/prelude/semantics/test/ComparisonTestCase.java')
-rw-r--r-- | container-search/src/test/java/com/yahoo/prelude/semantics/test/ComparisonTestCase.java | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/container-search/src/test/java/com/yahoo/prelude/semantics/test/ComparisonTestCase.java b/container-search/src/test/java/com/yahoo/prelude/semantics/test/ComparisonTestCase.java index 988d69a55d3..0c5447c120a 100644 --- a/container-search/src/test/java/com/yahoo/prelude/semantics/test/ComparisonTestCase.java +++ b/container-search/src/test/java/com/yahoo/prelude/semantics/test/ComparisonTestCase.java @@ -1,7 +1,7 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.prelude.semantics.test; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** * @author bratseth @@ -17,30 +17,30 @@ public class ComparisonTestCase extends RuleBaseAbstractTestCase { * different conditions (coffee, island) */ @Test - public void testNamedConditionReturnComparison() { + void testNamedConditionReturnComparison() { // Not sufficient that both conditions are matched - assertSemantics("AND borneo arabica island:borneo coffee:arabica","borneo arabica"); + assertSemantics("AND borneo arabica island:borneo coffee:arabica", "borneo arabica"); // They must match the same word - assertSemantics("AND java noise island:java coffee:java control:ambigous off","java noise"); + assertSemantics("AND java noise island:java coffee:java control:ambigous off", "java noise"); // Works also when there are other, not-equal matches assertSemantics("AND borneo arabica java island:borneo island:java coffee:arabica coffee:java control:ambigous off", - "borneo arabica java"); + "borneo arabica java"); } @Test - public void testContainsAsSubstring() { - assertSemantics("AND java island:java coffee:java control:ambigous off","java"); - assertSemantics("AND kanava island:kanava off","kanava"); - assertSemantics("AND borneo island:borneo","borneo"); + void testContainsAsSubstring() { + assertSemantics("AND java island:java coffee:java control:ambigous off", "java"); + assertSemantics("AND kanava island:kanava off", "kanava"); + assertSemantics("AND borneo island:borneo", "borneo"); } @Test - public void testAlphanumericComparison() { - assertSemantics("a","a"); - assertSemantics("AND z highletter","z"); - assertSemantics("AND p highletter","p"); + void testAlphanumericComparison() { + assertSemantics("a", "a"); + assertSemantics("AND z highletter", "z"); + assertSemantics("AND p highletter", "p"); } } |