From 653297153bf4a2da858ea7247e29ae3a7fee4f3e Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Sat, 16 Nov 2013 13:20:54 +0000 Subject: [PATCH] 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 --- .../org/apache/solr/search/QueryEqualityTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/solr/core/src/test/org/apache/solr/search/QueryEqualityTest.java b/solr/core/src/test/org/apache/solr/search/QueryEqualityTest.java index 626999910eb..d1f5e0fc767 100644 --- a/solr/core/src/test/org/apache/solr/search/QueryEqualityTest.java +++ b/solr/core/src/test/org/apache/solr/search/QueryEqualityTest.java @@ -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