Annotations reside in the package.
Assertions reside in
org.junit.jupiter.api.Assertions
.- Note that you may continue to use assertion methods from
org.junit.Assert
or any other assertion library such as , Hamcrest, , etc.
- Note that you may continue to use assertion methods from
@Before
and@After
no longer exist; use and@AfterEach
instead.@BeforeClass
and@AfterClass
no longer exist; use@BeforeAll
and@AfterAll
instead.no longer exists; use
@Tag
instead.@RunWith
no longer exists; superseded by@ExtendWith
.