mirror of
https://github.com/apache/lucene.git
synced 2025-03-01 05:49:33 +00:00
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:
parent
9af47143be
commit
99a7dbb949
@ -251,8 +251,11 @@ 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"));
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user