Fix test assertion matching exception message
Newer versions of the URL class in JDK 9 use a different exception message when throwing a MalformedURLException due to an unknown protocol.
This commit is contained in:
parent
c7b9489be8
commit
50b97ba5f5
|
@ -153,7 +153,8 @@ public class RepositoriesIT extends AbstractSnapshotIntegTestCase {
|
|||
.get();
|
||||
fail("Shouldn't be here");
|
||||
} catch (RepositoryException ex) {
|
||||
assertThat(ex.toString(), containsString("unsupported url protocol [netdoc]"));
|
||||
assertThat(ex.toString(), containsString("Unable to parse URL repository setting"));
|
||||
assertThat(ex.toString(), containsString("netdoc"));
|
||||
}
|
||||
|
||||
logger.info("--> trying creating url repository with location that is not registered in path.repo setting");
|
||||
|
|
Loading…
Reference in New Issue