From 95ac7984c961355d4dbe168ce873284fef9801c4 Mon Sep 17 00:00:00 2001 From: Jan Ouwens Date: Thu, 19 Dec 2024 15:46:14 +0100 Subject: [PATCH] Fails on the use of JUnit assertions --- build/checkstyle-config.xml | 5 ++++- .../jqno/equalsverifier/internal/util/ValidationsTest.java | 2 ++ .../verify_release/jar/helper/JarAsserter.java | 2 ++ .../jqno/equalsverifier/verify_release/pom/MainPomTest.java | 2 ++ .../verify_release/pom/helper/PomAsserter.java | 2 ++ 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/build/checkstyle-config.xml b/build/checkstyle-config.xml index f6b352b51..beba271a4 100644 --- a/build/checkstyle-config.xml +++ b/build/checkstyle-config.xml @@ -50,7 +50,10 @@ - + + + + diff --git a/equalsverifier-core/src/test/java/nl/jqno/equalsverifier/internal/util/ValidationsTest.java b/equalsverifier-core/src/test/java/nl/jqno/equalsverifier/internal/util/ValidationsTest.java index 16f5a7fe7..25c865cae 100644 --- a/equalsverifier-core/src/test/java/nl/jqno/equalsverifier/internal/util/ValidationsTest.java +++ b/equalsverifier-core/src/test/java/nl/jqno/equalsverifier/internal/util/ValidationsTest.java @@ -1,5 +1,7 @@ package nl.jqno.equalsverifier.internal.util; +// CHECKSTYLE OFF: IllegalImport + import static nl.jqno.equalsverifier.internal.testhelpers.Util.coverThePrivateConstructor; import static org.assertj.core.api.Assertions.*; import static org.junit.jupiter.api.Assertions.assertAll; diff --git a/equalsverifier-release-verify/src/test/java/nl/jqno/equalsverifier/verify_release/jar/helper/JarAsserter.java b/equalsverifier-release-verify/src/test/java/nl/jqno/equalsverifier/verify_release/jar/helper/JarAsserter.java index e383b343b..3da70d685 100644 --- a/equalsverifier-release-verify/src/test/java/nl/jqno/equalsverifier/verify_release/jar/helper/JarAsserter.java +++ b/equalsverifier-release-verify/src/test/java/nl/jqno/equalsverifier/verify_release/jar/helper/JarAsserter.java @@ -1,5 +1,7 @@ package nl.jqno.equalsverifier.verify_release.jar.helper; +// CHECKSTYLE OFF: IllegalImport + import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertAll; diff --git a/equalsverifier-release-verify/src/test/java/nl/jqno/equalsverifier/verify_release/pom/MainPomTest.java b/equalsverifier-release-verify/src/test/java/nl/jqno/equalsverifier/verify_release/pom/MainPomTest.java index 8747c1ef1..420d0347e 100644 --- a/equalsverifier-release-verify/src/test/java/nl/jqno/equalsverifier/verify_release/pom/MainPomTest.java +++ b/equalsverifier-release-verify/src/test/java/nl/jqno/equalsverifier/verify_release/pom/MainPomTest.java @@ -1,5 +1,7 @@ package nl.jqno.equalsverifier.verify_release.pom; +// CHECKSTYLE OFF: IllegalImport + import static org.junit.jupiter.api.Assertions.assertAll; import nl.jqno.equalsverifier.verify_release.pom.helper.PomAsserter; diff --git a/equalsverifier-release-verify/src/test/java/nl/jqno/equalsverifier/verify_release/pom/helper/PomAsserter.java b/equalsverifier-release-verify/src/test/java/nl/jqno/equalsverifier/verify_release/pom/helper/PomAsserter.java index 5ad862496..8fde19d5a 100644 --- a/equalsverifier-release-verify/src/test/java/nl/jqno/equalsverifier/verify_release/pom/helper/PomAsserter.java +++ b/equalsverifier-release-verify/src/test/java/nl/jqno/equalsverifier/verify_release/pom/helper/PomAsserter.java @@ -1,5 +1,7 @@ package nl.jqno.equalsverifier.verify_release.pom.helper; +// CHECKSTYLE OFF: IllegalImport + import static org.junit.jupiter.api.Assertions.assertAll; public class PomAsserter {