diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-05-28 17:42:04 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-05-28 17:42:04 +0200 |
commit | 94d36333ef57d35e559c3ec0892113bd64c55e52 (patch) | |
tree | ae23cdfd55bd5d4e6e414851df46b4c6661f9a46 /container-search/src/test/java/com/yahoo/prelude/querytransform | |
parent | 3ce5f5be747a04d41820de13eb60350346c8ad51 (diff) |
Parse before clone
Diffstat (limited to 'container-search/src/test/java/com/yahoo/prelude/querytransform')
-rw-r--r-- | container-search/src/test/java/com/yahoo/prelude/querytransform/test/IndexCombinatorTestCase.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/container-search/src/test/java/com/yahoo/prelude/querytransform/test/IndexCombinatorTestCase.java b/container-search/src/test/java/com/yahoo/prelude/querytransform/test/IndexCombinatorTestCase.java index b7c2a6378ce..7858bbf6433 100644 --- a/container-search/src/test/java/com/yahoo/prelude/querytransform/test/IndexCombinatorTestCase.java +++ b/container-search/src/test/java/com/yahoo/prelude/querytransform/test/IndexCombinatorTestCase.java @@ -29,7 +29,6 @@ public class IndexCombinatorTestCase { private Searcher transformer; private IndexFacts f; - @Ignore @Before public void setUp() throws Exception { transformer = new IndexCombinatorSearcher(); @@ -40,7 +39,6 @@ public class IndexCombinatorTestCase { f.addIndex("one", i); } - @Ignore @Test public void testDoNothing() { Result r = search("?query=z:y"); @@ -51,14 +49,12 @@ public class IndexCombinatorTestCase { return new Execution(transformer, Execution.Context.createContextStub(f)).search(new Query(QueryTestCase.httpEncode(query))); } - @Ignore @Test public void testBasic() { Result r = search("?query=y"); assertEquals("OR a:y i:y", r.getQuery().getModel().getQueryTree().getRoot().toString()); } - @Ignore @Test public void testBasicPair() { Result r = search("?query=x y"); @@ -67,14 +63,12 @@ public class IndexCombinatorTestCase { .getQuery().getModel().getQueryTree().getRoot().toString()); } - @Ignore @Test public void testBasicTriplet() { Result r = search("?query=x y z"); assertEquals("AND (OR a:x i:x) (OR a:y i:y) (OR a:z i:z)", r.getQuery().getModel().getQueryTree().getRoot().toString()); } - @Ignore @Test public void testBasicMixedSinglet() { Result r = search("?query=x z:q"); @@ -82,7 +76,6 @@ public class IndexCombinatorTestCase { .toString()); } - @Ignore @Test public void testBasicMixedPair() { Result r = search("?query=x y z:q"); @@ -91,7 +84,6 @@ public class IndexCombinatorTestCase { r.getQuery().getModel().getQueryTree().getRoot().toString()); } - @Ignore @Test public void testBasicMixedTriplet() { Result r = search("?query=x y z:q r"); @@ -99,21 +91,18 @@ public class IndexCombinatorTestCase { .getQuery().getModel().getQueryTree().getRoot().toString()); } - @Ignore @Test public void testBasicOr() { Result r = search("?query=x y&type=any"); assertEquals("OR a:y i:y a:x i:x", r.getQuery().getModel().getQueryTree().getRoot().toString()); } - @Ignore @Test public void testBasicPhrase() { Result r = search("?query=\"x y\""); assertEquals("OR a:x y i:x y", r.getQuery().getModel().getQueryTree().getRoot().toString()); } - @Ignore @Test public void testPhraseAndTerm() { Result r = search("?query=\"x y\" z"); @@ -122,7 +111,6 @@ public class IndexCombinatorTestCase { r.getQuery().getModel().getQueryTree().getRoot().toString()); } - @Ignore @Test public void testBasicNot() { Result r = search("?query=+x -y"); @@ -130,7 +118,6 @@ public class IndexCombinatorTestCase { .toString()); } - @Ignore @Test public void testLessBasicNot() { Result r = search("?query=a and b andnot c&type=adv"); @@ -139,7 +126,6 @@ public class IndexCombinatorTestCase { r.getQuery().getModel().getQueryTree().getRoot().toString()); } - @Ignore @Test public void testLongerAndInPositive() { Result r = search("?query=a and b and c andnot d&type=adv"); @@ -148,7 +134,6 @@ public class IndexCombinatorTestCase { .getQuery().getModel().getQueryTree().getRoot().toString()); } - @Ignore @Test public void testTreeInNegativeBranch() { Result r = search("?query=a andnot (b and c)&type=adv"); @@ -156,7 +141,6 @@ public class IndexCombinatorTestCase { .getQuery().getModel().getQueryTree().getRoot().toString()); } - @Ignore @Test public void testSomeTerms() { Result r = search("?query=a b -c +d g.h \"abc def\" z:q"); @@ -165,7 +149,6 @@ public class IndexCombinatorTestCase { r.getQuery().getModel().getQueryTree().getRoot().toString()); } - @Ignore @Test public void testMixedIndicesAndAttributes() { String indexInfoConfigID = "file:src/test/java/com/yahoo/prelude/querytransform/test/indexcombinator.cfg"; |