Skip to content

Commit 0ea5943

Browse files
committed
Merge branch '2024.0.x'
2 parents a6bdb32 + 4389c30 commit 0ea5943

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/test/java/org/springframework/cloud/internal/ZipCategoryTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
import java.nio.file.Files;
2121

2222
import org.assertj.core.api.BDDAssertions;
23-
import org.junit.jupiter.api.Assertions;
2423
import org.junit.jupiter.api.Test;
2524

25+
import static org.assertj.core.api.Fail.fail;
26+
2627
class ZipCategoryTests {
2728

2829
@Test
@@ -49,7 +50,7 @@ void should_not_allow_malicious_traversal() throws Exception {
4950
// when:
5051
try {
5152
ZipCategory.unzipTo(zipFile, tempDir);
52-
Assertions.fail("Should throw exception");
53+
fail("Should throw exception");
5354
}
5455
catch (Exception e) {
5556
BDDAssertions.then(e.getCause()).hasMessageContaining("is trying to leave the target output directory");

0 commit comments

Comments
 (0)