summaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/search
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-11-06 11:27:55 +0100
committerJon Bratseth <bratseth@oath.com>2018-11-06 11:27:55 +0100
commit975ae438bb199feb396625c5a02156986d8dc034 (patch)
tree097a0ea953ff601e5a7e9085fabf045f22486b3b /container-search/src/test/java/com/yahoo/search
parent8a4ab6394438045f740cb850d882346796e99eb6 (diff)
Improve error messages
Diffstat (limited to 'container-search/src/test/java/com/yahoo/search')
-rw-r--r--container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java b/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java
index 127820bb7ae..8c47ae377c3 100644
--- a/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java
+++ b/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java
@@ -868,10 +868,10 @@ public class YqlParserTestCase {
@Test
public void testWordAlternativesWithOrigin() {
- QueryTree x = parse("select * from sources * where foo contains"
- + " ([{\"origin\": {\"original\": \" trees \", \"offset\": 1, \"length\": 5}}]"
- + "alternatives({\"trees\": 1.0, \"tree\": 0.7}));");
- Item root = x.getRoot();
+ QueryTree q = parse("select * from sources * where foo contains" +
+ " ([{\"origin\": {\"original\": \" trees \", \"offset\": 1, \"length\": 5}}]" +
+ "alternatives({\"trees\": 1.0, \"tree\": 0.7}));");
+ Item root = q.getRoot();
assertSame(WordAlternativesItem.class, root.getClass());
WordAlternativesItem alternatives = (WordAlternativesItem) root;
checkWordAlternativesContent(alternatives);
@@ -884,9 +884,9 @@ public class YqlParserTestCase {
@Test
public void testWordAlternativesInPhrase() {
- QueryTree x = parse("select * from sources * where"
- + " foo contains phrase(\"forest\", alternatives({\"trees\": 1.0, \"tree\": 0.7}));");
- Item root = x.getRoot();
+ QueryTree q = parse("select * from sources * where" +
+ " foo contains phrase(\"forest\", alternatives({\"trees\": 1.0, \"tree\": 0.7}));");
+ Item root = q.getRoot();
assertSame(PhraseItem.class, root.getClass());
PhraseItem phrase = (PhraseItem) root;
assertEquals(2, phrase.getItemCount());