Test Lifecycle
Methods can be annotated so they will be called at specific points on the test lifecycle.
JUnit 4
AfterClass
After
BeforeClass
Before
Initializing Data
JUnit 5
AfterAll
AfterEach
BeforeAll
BeforeEach
Initializing Data
Last updated
Was this helpful?