New JUnit 5 assertions should be imported where needed, for instance import static
org.junit.jupiter.api.Assertions.assertEquals
Assertion messages should be moved to the last parameter where needed, for instance
assertEquals("message", 2, 1) becomes assertEquals(2, 1, "message")
org.junit.Test should be changed in favor of org.junit.jupiter.api.Test
org.junit.Ignore should be changed in favor of org.junit.jupiter.api.Disabled
org.junit.Before should be changed in favor of org.junit.jupiter.api.BeforeEach
org.junit.After should be changed in favor of org.junit.jupiter.api.AfterEach
org.junit.BeforeClass should be changed in favor of import org.junit.jupiter.api.BeforeAll
org.junit.AfterClass should be changed in favor of import org.junit.jupiter.api.AfterAll
Built-in assertThat from third-party assertion libraries should be used. For instance, use
org.hamcrest.MatcherAssert.assertThat from java-hamcrest