Training: Automated software tests in Java with JUnit & Mockito

In order to establish a successful DevOps strategy in your company, automated software testing is essential. However, quality assurance measures such as refactoring, error corrections and change requests also require extensive re-tests that are carried out completely independently, if possible without manual intervention.

The implementation of test-driven development (TDD) significantly reduces the effort required in the project compared to manual tests in a very short time. It does not matter whether test automation has not been used in the project for many months or even years. In this course you will learn how to develop test-driven projects without high risk and with minimal effort. The code quality will also improve without the need for additional measures. For this reason, this course is not only suitable for Java developers, but also for project managers who need to introduce TDD in their company.

This 2 day course is conducted exclusively remotely and can also be booked for closed groups. If you are interested in the offered course content please do not hesitate to contact me .


  • test automation
    • Manual vs. automationtest automation
    • Necessity for automation
    • Test concepts and responsibilities
    • Paradigms: TDD and BDD
  • Setup
    • Java, NetBeans, Maven, JUnit, Mockito, Cobertura, Testcontainers
  • Test Driven Development (TDD) with JUnit 5
    • Setup: Setting up JUnit for Maven
    • Structure of a test class
    • The AAA principle
    • Writing testable code
    • Assertions
    • Test simplification with BeanMatchers
    • Meaningful tests & test coverage in Cobertura
    • Finding problems when test cases fail
    • Logging with Logback
  • Advanced techniques
    • Parameterized tests
    • Architecture tests with ArchUnit
    • Component tests in Maven with the Failsafe plugin
    • Test Prepare & CleanUp
    • Test optimization with @ClassRule
    • Integrating infrastructure components with test containers
  • Introduction to Mockito
    • Test doubles, mocks, stubs, fakes and spys
    • Mock objects
    • Special tasks with PowerMock
  • Behavioral Driven Development (BDD) with JGiven
    • Set up a test project
    • Writing acceptance tests
    • Continuous integration vs. integration tests

Leave a Reply

Your email address will not be published. Required fields are marked *