Course curriculum

    1. Introduction and agenda

    2. Why write tests?

    3. Why do we need a testing framework?

    4. Why JUnit 5?

    5. JUnit 5 Architecture

    1. Creating a new JUnit 5 Maven project

    2. Creating a JUnit test

    3. Running a test

    4. The @Test annotation

    5. Using Assertions

    6. Assert methods

    1. Test driven development with JUnit

    2. Maven surefire plugin integration

    3. Asserting exceptions with assertThrows

    4. Life cycle and test antipatterns to avoid

    1. Using JUnit lifecycle hook annotations

    2. Examining BeforeAll and AfterAll

    3. Changing default TestInstance behavior

    4. Using DisplayName and Disabled annotations

    5. Conditional executions and assumptions

    6. Using AssertAll

    7. Writing nested test classes

    8. Using supplier for assert messages

    1. Using RepeatedTest

    2. Tagging tests with @Tag

    3. Using TestInfo and TestReporter

    1. Wrap Up

About this course

  • Free
  • 27 lessons
  • 2.5 hours of video content