diff options
Diffstat (limited to 'container-search/src/test/java/com/yahoo/prelude/semantics/test/DuplicateRuleTestCase.java')
-rw-r--r-- | container-search/src/test/java/com/yahoo/prelude/semantics/test/DuplicateRuleTestCase.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/container-search/src/test/java/com/yahoo/prelude/semantics/test/DuplicateRuleTestCase.java b/container-search/src/test/java/com/yahoo/prelude/semantics/test/DuplicateRuleTestCase.java index fb86beaa9bc..76c8c3966b7 100644 --- a/container-search/src/test/java/com/yahoo/prelude/semantics/test/DuplicateRuleTestCase.java +++ b/container-search/src/test/java/com/yahoo/prelude/semantics/test/DuplicateRuleTestCase.java @@ -1,6 +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 com.yahoo.language.simple.SimpleLinguistics; import com.yahoo.prelude.semantics.RuleBaseException; import com.yahoo.prelude.semantics.RuleImporter; import com.yahoo.prelude.semantics.parser.ParseException; @@ -14,18 +15,18 @@ import static org.junit.Assert.fail; */ public class DuplicateRuleTestCase { - private final String root="src/test/java/com/yahoo/prelude/semantics/test/rulebases/"; + private final String root = "src/test/java/com/yahoo/prelude/semantics/test/rulebases/"; @Test public void testDuplicateRuleBaseLoading() throws java.io.IOException, ParseException { if (System.currentTimeMillis() > 0) return; // TODO: Include this test... try { - new RuleImporter().importFile(root + "rules.sr"); + new RuleImporter(new SimpleLinguistics()).importFile(root + "rules.sr"); fail("Did not detect duplicate condition names"); } catch (RuleBaseException e) { - assertEquals("Duplicate condition 'something' in 'duplicaterules.sr'",e.getMessage()); + assertEquals("Duplicate condition 'something' in 'duplicaterules.sr'", e.getMessage()); } } |