mirror of https://github.com/apache/lucene.git
SOLR-3634: aparently, not all java6 SAXParseException implementations include the systemId in the toString(), so let's make sure we check it explicitly ... if this still doesn't work, then i'm going to start learning how to write C# and java can burn in hell for all i care ... write once run anywhere my ass
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1366574 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
89056ffd9d
commit
66c9bb6e9b
|
@ -276,8 +276,10 @@ public class CoreContainerCoreInitFailuresTest extends SolrTestCaseJ4 {
|
|||
assertEquals("wrong number of core failures", 1, failures.size());
|
||||
fail = failures.get("col_bad");
|
||||
assertNotNull("null failure for test core", fail);
|
||||
assertTrue("init failure isn't SAXParseException",
|
||||
fail instanceof SAXParseException);
|
||||
assertTrue("init failure doesn't mention problem: " + fail.toString(),
|
||||
0 < fail.toString().indexOf("solrconfig.xml"));
|
||||
0 < ((SAXParseException)fail).getSystemId().indexOf("solrconfig.xml"));
|
||||
|
||||
|
||||
// ----
|
||||
|
|
Loading…
Reference in New Issue