Fixed a test case that was broken in Java7 by SOLR-1028

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1403936 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erick Erickson 2012-10-30 23:54:25 +00:00
parent 9af47143be
commit 99a7dbb949
1 changed files with 6 additions and 3 deletions

View File

@ -251,9 +251,12 @@ public class CoreContainerCoreInitFailuresTest extends SolrTestCaseJ4 {
cc.reload("col_bad");
fail("corrupt solrconfig.xml failed to trigger exception from reload");
} catch (SolrException e) {
assertTrue("reload exception doesn't refer to prolog " + e.getCause().getMessage(),
0 < e.getCause().getMessage().indexOf("prolog"));
assertTrue("We're supposed to have a wrapped SAXParserException here, but we don't",
e.getCause() instanceof SAXParseException);
SAXParseException se = (SAXParseException)e.getCause();
assertTrue("reload exception doesn't refer to slrconfig.xml " + se.getSystemId(),
0 < se.getSystemId().indexOf("solrconfig.xml"));
}
assertEquals("Failed core reload should not have changed start time",