Skip to content

Commit

Permalink
Fails on the use of JUnit assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
jqno committed Dec 19, 2024
1 parent 4e6b243 commit 95ac798
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/checkstyle-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
<property name="ignoreConstructorParameter" value="true"/>
</module>
<module name="HideUtilityClassConstructor"/>
<module name="IllegalImport"/>
<module name="IllegalImport">
<property name="illegalClasses" value="org\.junit\.jupiter\.api\.Assertions\..*"/>
<property name="regexp" value="true"/>
</module>
<module name="IllegalThrows"/>
<module name="IllegalToken">
<property name="tokens" value="INC,DEC,BSR,BSR_ASSIGN,SL,SL_ASSIGN,SR,SR_ASSIGN"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 95ac798

Please sign in to comment.