Fixing another file separator issue, test only

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1499074 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erick Erickson 2013-07-02 19:44:46 +00:00
parent 618cae1092
commit 42ca89d233
1 changed files with 4 additions and 2 deletions

View File

@ -184,8 +184,10 @@ public class TestCoreDiscovery extends SolrTestCaseJ4 {
String message = cause.getMessage();
assertTrue("Should have seen an exception because two cores had the same name",
message.indexOf("Core core1 defined more than once") != -1);
assertTrue("/core1 should have been mentioned in the message", message.indexOf("/core1") != -1);
assertTrue("/core2 should have been mentioned in the message", message.indexOf("/core2") != -1);
assertTrue(File.separator + "core1 should have been mentioned in the message: " + message,
message.indexOf(File.separator + "core1") != -1);
assertTrue(File.separator + "core2 should have been mentioned in the message:" + message,
message.indexOf(File.separator + "core2") != -1);
} finally {
if (cc != null) {
cc.shutdown();