Fixed failing tests
This commit is contained in:
parent
2b58bef262
commit
26d5a018d9
1 changed files with 3 additions and 3 deletions
|
@ -139,16 +139,16 @@ class BootJarOperationTest {
|
||||||
bootWar = bootWar.mainClass(MAIN_CLASS);
|
bootWar = bootWar.mainClass(MAIN_CLASS);
|
||||||
assertThatCode(bootWar::execute)
|
assertThatCode(bootWar::execute)
|
||||||
.isInstanceOf(IllegalArgumentException.class)
|
.isInstanceOf(IllegalArgumentException.class)
|
||||||
.hasMessageContaining("spring-boot-loader");
|
.hasMessageContaining("class required");
|
||||||
|
|
||||||
assertThatCode(() -> new BootWarOperation().launcherLibs(List.of(new File("foo"))))
|
assertThatCode(() -> new BootWarOperation().launcherLibs(List.of(new File("foo"))))
|
||||||
.isInstanceOf(IOException.class)
|
.isInstanceOf(IOException.class)
|
||||||
.hasMessageContaining("found");
|
.hasMessageContaining("not found");
|
||||||
|
|
||||||
bootWar = bootWar.launcherLibs(List.of(new File(EXAMPLES_LIB_STANDALONE + SPRING_BOOT_LOADER)));
|
bootWar = bootWar.launcherLibs(List.of(new File(EXAMPLES_LIB_STANDALONE + SPRING_BOOT_LOADER)));
|
||||||
assertThatCode(bootWar::execute)
|
assertThatCode(bootWar::execute)
|
||||||
.isInstanceOf((IllegalArgumentException.class))
|
.isInstanceOf((IllegalArgumentException.class))
|
||||||
.hasMessageContaining("class required").hasMessageContaining("spring-boot-loader");
|
.hasMessageContaining("class required");
|
||||||
|
|
||||||
bootWar = bootWar.launcherClass("org.springframework.boot.loader.WarLauncher");
|
bootWar = bootWar.launcherClass("org.springframework.boot.loader.WarLauncher");
|
||||||
assertThat(bootWar.verifyExecute()).isTrue();
|
assertThat(bootWar.verifyExecute()).isTrue();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue