Merge branch '2.7.x' into 3.0.x

Closes gh-37544
This commit is contained in:
Andy Wilkinson 2023-09-22 16:26:21 +01:00
commit 333820627f

View File

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