SOLR-5188: Bring back a test that checks the default LogWatcher enabled setting.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1517816 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-08-27 13:41:34 +00:00
parent 4e9f65f2b0
commit cb439e9482
2 changed files with 5 additions and 1 deletions

View File

@ -181,6 +181,11 @@ public class TestCoreContainer extends SolrTestCaseJ4 {
}
@Test
public void testLogWatcherEnabledByDefault() {
assertNotNull(h.getCoreContainer().getLogging());
}
private void SetUpHome(File solrHomeDirectory, String xmlFile) throws IOException {
if (solrHomeDirectory.exists()) {
FileUtils.deleteDirectory(solrHomeDirectory);

View File

@ -173,7 +173,6 @@ public class TestHarness extends BaseTestHarness {
String solrConfig, String schema) {
String solrxml = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"
+ "<solr persistent=\"false\">\n"
+ " <logging enabled=\"true\"/>\n"
+ " <cores adminPath=\"/admin/cores\" defaultCoreName=\""
+ ConfigSolrXmlOld.DEFAULT_DEFAULT_CORE_NAME
+ "\""