mirror of https://github.com/apache/lucene.git
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:
parent
d34549874c
commit
653297153b
|
@ -744,6 +744,17 @@ public class QueryEqualityTest extends SolrTestCaseJ4 {
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue