SOLR-5447: Added a test for simple query parser in QueryEqualityTest

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1542507 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2013-11-16 13:20:54 +00:00
parent d34549874c
commit 653297153b
1 changed files with 11 additions and 0 deletions

View File

@ -744,6 +744,17 @@ public class QueryEqualityTest extends SolrTestCaseJ4 {
doAssertParserCoverage = true; doAssertParserCoverage = true;
} }
public void testQuerySimple() throws Exception {
SolrQueryRequest req = req("myField","foo_s");
try {
assertQueryEquals("simple", req,
"{!simple f=$myField}asdf",
"{!simple f=$myField v=asdf}",
"{!simple f=foo_s}asdf");
} finally {
req.close();
}
}
/** /**
* NOTE: defType is not only used to pick the parser, but also to record * NOTE: defType is not only used to pick the parser, but also to record