Fix broken test in FileSystemUtilsTests

Commit ee84ce09d7 changed an exception
message without changing the corresponding test. This commit fixes the
related test.
This commit is contained in:
Tim Brooks 2017-02-07 12:46:50 -06:00
parent 274ee30d34
commit adc1184dd0
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ public class FileSystemUtilsTests extends ESTestCase {
try (InputStream is = FileSystemUtils.openFileURLStream(urlWithWrongProtocol)) {
fail("Should throw IllegalArgumentException due to invalid protocol");
} catch (IllegalArgumentException e) {
assertEquals("Invalid protocol [http], must be [file]", e.getMessage());
assertEquals("Invalid protocol [http], must be [file] or [jar]", e.getMessage());
}
URL urlWithHost = new URL("file", "localhost", txtFile.toString());