improve test: a few more implicit properties

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1525733 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2013-09-23 23:35:40 +00:00
parent f4c6a05206
commit ae72053351
2 changed files with 12 additions and 2 deletions

View File

@ -58,7 +58,11 @@
<lst name="defaults"> <lst name="defaults">
<str name="echoParams">all</str> <str name="echoParams">all</str>
<str name="df">text</str> <str name="df">text</str>
<str name="dummyParam">${solr.core.name}</str> <str name="dummy1">${solr.core.name}</str>
<str name="dummy2">${solr.core.dataDir}</str>
<str name="dummy3">${solr.core.config}</str>
<str name="dummy4">${solr.core.schema}</str>
<str name="dummy5">${solr.core.transient}</str>
</lst> </lst>
</requestHandler> </requestHandler>

View File

@ -30,7 +30,13 @@ public class TestImplicitCoreProperties extends SolrTestCaseJ4 {
CoreContainer cc = createCoreContainer(TEST_HOME(), SOLRXML); CoreContainer cc = createCoreContainer(TEST_HOME(), SOLRXML);
try { try {
cc.load(); cc.load();
assertQ(req("q", "*:*"), "//str[@name='dummyParam'][.='collection1']"); assertQ(req("q", "*:*")
, "//str[@name='dummy1'][.='collection1']"
, "//str[@name='dummy2'][.='data/']"
, "//str[@name='dummy3'][.='solrconfig-implicitproperties.xml']"
, "//str[@name='dummy4'][.='schema.xml']"
, "//str[@name='dummy5'][.='false']"
);
} }
finally { finally {
cc.shutdown(); cc.shutdown();