forked from SonarSource/sonar-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
forbid_junit4.txt
17 lines (16 loc) · 955 Bytes
/
forbid_junit4.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Signatures for forbiddenapis Maven plugin
# to prevent accidental use of JUnit 4 for tests
# in the presence of junit-jupiter-migrationsupport,
# because they can be executed from IntelliJ IDEA,
# but won't be executed by maven-surefire-plugin
# in the absence of junit-jupiter-vintage
@defaultMessage use JUnit 5 instead
org.junit.runner.RunWith
org.junit.After @ use JUnit 5 org.junit.jupiter.api.AfterEach instead
org.junit.AfterClass @ use JUnit 5 org.junit.jupiter.api.AfterAll instead
org.junit.Before @ use JUnit 5 org.junit.jupiter.api.BeforeEach instead
org.junit.BeforeClass @ use JUnit 5 org.junit.jupiter.api.BeforeAll instead
org.junit.Ignore @ use JUnit 5 org.junit.jupiter.api.Disabled instead
org.junit.Assert @ use JUnit 5 org.junit.jupiter.api.Assertions or org.fest.assertions.Assertions instead
org.junit.Assume @ use JUnit 5 org.junit.jupiter.api.Assumptions instead
org.junit.Test @ use JUnit 5 org.junit.jupiter.api.Test instead