Each JUnit5 test follows a life cycle where it goes through different phases.

The following are the three phases involved as parts of the test life cycle:

  • Setup
  • Execution
  • Cleanup

Get hands-on with 1200+ tech skills courses.