From 805792d36c0eb62ae7b174026b253f3430d1655e Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Thu, 10 Apr 2025 11:42:05 -0400 Subject: [PATCH] Use Assert4J --- .../org/springframework/cloud/internal/ZipCategoryTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/src/test/java/org/springframework/cloud/internal/ZipCategoryTests.java b/docs/src/test/java/org/springframework/cloud/internal/ZipCategoryTests.java index 49c675f..0b258bd 100644 --- a/docs/src/test/java/org/springframework/cloud/internal/ZipCategoryTests.java +++ b/docs/src/test/java/org/springframework/cloud/internal/ZipCategoryTests.java @@ -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");