JUnit 5
The release of JUnit version 5 included many features and changes, which we will highlight in this section.
Objectives¶
- Be able to use
@BeforeEachand@AfterEachto set up test cases. - Be able to use
@DisplayNameand other new JUnit 5 annotations. - Be able to use lambdas and
Executableto test Exceptions.