diff --git a/spring-boot-project/spring-boot-tools/spring-boot-jarmode-layertools/src/test/java/org/springframework/boot/jarmode/layertools/ExtractCommandTests.java b/spring-boot-project/spring-boot-tools/spring-boot-jarmode-layertools/src/test/java/org/springframework/boot/jarmode/layertools/ExtractCommandTests.java index f865a4077b..6d3c3c0181 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-jarmode-layertools/src/test/java/org/springframework/boot/jarmode/layertools/ExtractCommandTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-jarmode-layertools/src/test/java/org/springframework/boot/jarmode/layertools/ExtractCommandTests.java @@ -167,6 +167,7 @@ class ExtractCommandTests { } }); given(this.context.getArchiveFile()).willReturn(this.jarFile); + given(this.context.getWorkingDir()).willReturn(this.extract); assertThatIllegalStateException() .isThrownBy(() -> this.command.run(Collections.emptyMap(), Collections.emptyList())) .withMessageContaining("Entry 'e/../../e.jar' would be written");