diff options
Diffstat (limited to 'container-search/src/test/java/com/yahoo/prelude/semantics/test/LabelMatchingTestCase.java')
-rw-r--r-- | container-search/src/test/java/com/yahoo/prelude/semantics/test/LabelMatchingTestCase.java | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/container-search/src/test/java/com/yahoo/prelude/semantics/test/LabelMatchingTestCase.java b/container-search/src/test/java/com/yahoo/prelude/semantics/test/LabelMatchingTestCase.java index d45e114e89f..0a12ea2c49f 100644 --- a/container-search/src/test/java/com/yahoo/prelude/semantics/test/LabelMatchingTestCase.java +++ b/container-search/src/test/java/com/yahoo/prelude/semantics/test/LabelMatchingTestCase.java @@ -4,7 +4,7 @@ package com.yahoo.prelude.semantics.test; import java.io.IOException; import com.yahoo.prelude.semantics.parser.ParseException; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** * Tests label-dependent matching @@ -19,30 +19,30 @@ public class LabelMatchingTestCase extends RuleBaseAbstractTestCase { /** Tests that matching with no label matches the default label (index) only */ @Test - public void testDefaultLabelMatching() throws IOException, ParseException { - assertSemantics("matched:term","term"); - assertSemantics("alabel:term","alabel:term"); + void testDefaultLabelMatching() throws IOException, ParseException { + assertSemantics("matched:term", "term"); + assertSemantics("alabel:term", "alabel:term"); - assertSemantics("AND term2 hit","term2"); - assertSemantics("alabel:term2","alabel:term2"); + assertSemantics("AND term2 hit", "term2"); + assertSemantics("alabel:term2", "alabel:term2"); } @Test - public void testSpecificLabelMatchingInConditionReference() throws IOException, ParseException { - assertSemantics("+dcattitle:restaurants -dcat:hotel","dcattitle:restaurants"); + void testSpecificLabelMatchingInConditionReference() throws IOException, ParseException { + assertSemantics("+dcattitle:restaurants -dcat:hotel", "dcattitle:restaurants"); } @Test - public void testSpecificlabelMatchingInNestedCondition() throws IOException, ParseException { - assertSemantics("three","foo:one"); - assertSemantics("three","foo:two"); - assertSemantics("bar:one","bar:one"); - assertSemantics("bar:two","bar:two"); - assertSemantics("foo:three","foo:three"); - assertSemantics("one","one"); - assertSemantics("two","two"); - assertSemantics("AND three three","foo:one foo:two"); - assertSemantics("AND bar:one bar:two","bar:one bar:two"); + void testSpecificlabelMatchingInNestedCondition() throws IOException, ParseException { + assertSemantics("three", "foo:one"); + assertSemantics("three", "foo:two"); + assertSemantics("bar:one", "bar:one"); + assertSemantics("bar:two", "bar:two"); + assertSemantics("foo:three", "foo:three"); + assertSemantics("one", "one"); + assertSemantics("two", "two"); + assertSemantics("AND three three", "foo:one foo:two"); + assertSemantics("AND bar:one bar:two", "bar:one bar:two"); } } |