Skip to content

Commit 4389c30

Browse files
committed
Merge branch '2023.0.x' into 2024.0.x
2 parents 13c5c29 + 805792d commit 4389c30

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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)