Use Assert4J

This commit is contained in:
Ryan Baxter
2025-04-10 11:42:05 -04:00
parent 917148d659
commit 805792d36c

View File

@@ -20,9 +20,10 @@ import java.io.File;
import java.nio.file.Files;
import org.assertj.core.api.BDDAssertions;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Fail.fail;
class ZipCategoryTests {
@Test
@@ -49,7 +50,7 @@ class ZipCategoryTests {
// when:
try {
ZipCategory.unzipTo(zipFile, tempDir);
Assertions.fail("Should throw exception");
fail("Should throw exception");
}
catch (Exception e) {
BDDAssertions.then(e.getCause()).hasMessageContaining("is trying to leave the target output directory");