aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/prelude/semantics/test/NoStemmingTestCase.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-04-13 22:18:11 +0200
committerJon Bratseth <bratseth@oath.com>2018-04-13 22:18:11 +0200
commit8c54be83e36fa4ba28c747fec2b8040832002b49 (patch)
treec63d75c05930352205e46fd405b2ddc5272dcd1f /container-search/src/test/java/com/yahoo/prelude/semantics/test/NoStemmingTestCase.java
parent41969051757a99e5c8ed09fac31fa0658f039c7c (diff)
Remove usage of old junit
Diffstat (limited to 'container-search/src/test/java/com/yahoo/prelude/semantics/test/NoStemmingTestCase.java')
-rw-r--r--container-search/src/test/java/com/yahoo/prelude/semantics/test/NoStemmingTestCase.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/container-search/src/test/java/com/yahoo/prelude/semantics/test/NoStemmingTestCase.java b/container-search/src/test/java/com/yahoo/prelude/semantics/test/NoStemmingTestCase.java
index 970a3246328..be19140cc97 100644
--- a/container-search/src/test/java/com/yahoo/prelude/semantics/test/NoStemmingTestCase.java
+++ b/container-search/src/test/java/com/yahoo/prelude/semantics/test/NoStemmingTestCase.java
@@ -1,6 +1,8 @@
// Copyright 2017 Yahoo Holdings. 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;
+
/**
* Tests a case reported by tularam
*
@@ -8,21 +10,24 @@ package com.yahoo.prelude.semantics.test;
*/
public class NoStemmingTestCase extends RuleBaseAbstractTestCase {
- public NoStemmingTestCase(String name) {
- super(name,"nostemming.sr");
+ public NoStemmingTestCase() {
+ super("nostemming.sr");
}
/** Should rewrite correctly */
+ @Test
public void testCorrectRewriting1() {
assertSemantics("+(AND i:arts i:sciences) -i:b","i:as -i:b");
}
/** Should rewrite correctly too */
+ @Test
public void testCorrectRewriting2() {
assertSemantics("+(AND i:arts i:sciences i:crafts) -i:b","i:asc -i:b");
}
/** Should not rewrite */
+ @Test
public void testNoRewriting() {
assertSemantics("+i:a -i:s","i:a -i:s");
}