The spring context now fails to start if the stub cannot be found

The spring context now fails to start if the stub cannot be found, enabling the test to fail as quickly as possible for feedback
This commit is contained in:
Andrew Morgan
2016-10-26 10:01:13 +01:00
committed by Marcin Grzejszczak
parent b690110fcb
commit 413a3d23bb
3 changed files with 37 additions and 2 deletions

View File

@@ -197,7 +197,7 @@ public class AetherStubDownloader implements StubDownloader {
throw new IllegalStateException("Cannot resolve version range", e);
}
if (rangeResult.getHighestVersion() == null) {
log.error("For groupId [" + stubsGroup + "] artifactId [" + stubsModule + "] "
throw new IllegalArgumentException("For groupId [" + stubsGroup + "] artifactId [" + stubsModule + "] "
+ "and classifier [" + classifier + "] the version was not resolved!");
}
return rangeResult.getHighestVersion() == null ? null : rangeResult.getHighestVersion().toString();