We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6bdb32 + 4389c30 commit 0ea5943Copy full SHA for 0ea5943
docs/src/test/java/org/springframework/cloud/internal/ZipCategoryTests.java
@@ -20,9 +20,10 @@
20
import java.nio.file.Files;
21
22
import org.assertj.core.api.BDDAssertions;
23
-import org.junit.jupiter.api.Assertions;
24
import org.junit.jupiter.api.Test;
25
+import static org.assertj.core.api.Fail.fail;
26
+
27
class ZipCategoryTests {
28
29
@Test
@@ -49,7 +50,7 @@ void should_not_allow_malicious_traversal() throws Exception {
49
50
// when:
51
try {
52
ZipCategory.unzipTo(zipFile, tempDir);
- Assertions.fail("Should throw exception");
53
+ fail("Should throw exception");
54
}
55
catch (Exception e) {
56
BDDAssertions.then(e.getCause()).hasMessageContaining("is trying to leave the target output directory");
0 commit comments