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:
Yannick Welsch 2016-07-02 09:27:07 +02:00
parent c7b9489be8
commit 50b97ba5f5
1 changed files with 2 additions and 1 deletions

View File

@ -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");