mirror of https://github.com/apache/lucene.git
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:
parent
f4c6a05206
commit
ae72053351
|
@ -58,7 +58,11 @@
|
|||
<lst name="defaults">
|
||||
<str name="echoParams">all</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>
|
||||
|
||||
</requestHandler>
|
||||
|
|
|
@ -30,7 +30,13 @@ public class TestImplicitCoreProperties extends SolrTestCaseJ4 {
|
|||
CoreContainer cc = createCoreContainer(TEST_HOME(), SOLRXML);
|
||||
try {
|
||||
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 {
|
||||
cc.shutdown();
|
||||
|
|
Loading…
Reference in New Issue