In this course, you will :
- Learn what unit tests are, why they are important, and how to test your Java applications with the JUnit 5 Framework, the market's most popular unit testing framework for Java developers.
- Learn about advanced JUnit 5 concepts such as the JUnit 5 extension model, dependency injection, migrating existing unit tests from JUnit 4 to JUnit 5, and integrating your unit tests with Maven and Gradle.
- Learn about unit testing.
- JUnit 5 is used to write unit tests.
- Unit testing should be implemented.
- Convert JUnit4 tests to JUnit 5.
- JUnit 5 should be integrated with Maven and Gradle.
- Learn advanced JUnit 5 concepts.
1. Introduction to JUnit 5
- Introduction to Testing Pyramid and Unit Testing
- Introduction to JUnit 5
- JUnit 5 Architecture
- Our First Unit Test with JUnit 5
2. Junit 5 Core Concepts
- Structuring Tests Using the AAA Approach
- Understanding JUnit 5 Life Cycle
- Conditional Execution
- Nested Tests
- Tagged Tests
- Repeated Tests
- Parameterized Tests
- Disabled Tests
3. Dynamic Tests
- `TestFactory` Annotation
- 5. Dependency Injection in JUnit 5
- Using the TestInfoParameterResolver Class
- Using the TestReporterParameterResovler Class
- Using the RepetitionInfoParameterResolver Class
4. JUnit 5 Extensions
- JUnit 5 Extension Model
- Using the `TestInstancePostProcessor` Extension
- Using the `ExecutionCondition` Extension
- Using Life Cycle Callback Extensions
- Using the ParameterResolver Extension
- Using TestExecutionExceptionHandler Extension
- Different Ways to Register Extensions
5. Migrating from Junit 4 to Junit 5
- Difference between JUnit 4 and JUnit 5
- Rule Support in JUnit 5
- IDE Support for JUnit 5
- Setting up JUnit 5 with Maven
- Setting up JUnit 5 with Gradle
- Running JUnit5 Tests with Maven
- Running JUnit5 Tests with Gradle
- Running JUnit 4 Tests in Junit 5