Java: Testing with JUnit

Go to class
Write Review

Free Online Course: Java: Testing with JUnit provided by LinkedIn Learning is a comprehensive online course, which lasts for 2-3 hours worth of material. The course is taught in English and is free of charge. Upon completion of the course, you can receive an e-certificate from LinkedIn Learning. Java: Testing with JUnit is taught by Maaike van Putten.

Overview
  • Learn how to use JUnit, a powerful open-source testing tool for testing Java.

Syllabus
  • Introduction

    • Create proper unit tests in Java
    • What should you know
    • Unit testing and other types of testing
    • TDD: Test-driven development
    • Advantages of unit testing
    • What is JUnit?
    1. Getting Started with JUnit
    • Quick example of a basic unit test
    • Setting up JUnit for IntelliJ
    • Setting up JUnit for VS Code
    • Setting up JUnit for Eclipse
    • Your first test: HelloJUnit
    2. Writing Basic Tests with JUnit
    • Annotations
    • Write and run test classes and methods
    • DisplayName
    • Assertions
    • Assumptions
    • Test execution order
    • Nested tests
    3. More Advanced Usage of JUnit
    • Dependency injection in your tests
    • Repeated tests
    • Parameterized tests
    • Timeouts
    • Parallel execution
    • Lifecyle control: Before and after
    • Custom messages and reports
    • Conditional test execution
    • Disabling unit tests
    4. Quick Peek at Next Steps
    • How to make code ready for unit testing
    • Best practices
    • Mockito
    Conclusion
    • Next steps with JUnit