German English

Java Testing Training

Duration Target group
2-3 days Software developers
and architects

Training overview
Programmers are responsible for developing stable and maintainable software. In this workshop you will get to know the tools to efficiently test your code base and make it maintainable and to switch to new features of the Java programming language. Efficient procedures and workflows are also presented and discussed and your developers and architects get to know continuous integration, to constantly improve and simplify the code during development.

Either Maven or Gradle is used as a build system. If requested the Eclipse IDE, IntelliJ or Visual Studio Code can be used.

An additional third day can be added to learn how to create tests for Spring Boot applications.

The workshop can be adapted to your needs.

Training prerequisites
Knowledge of Java programming. If the third day is added then also knowledge of the Spring Framework.

Customer reviews

Online Training

Language Price
Java Testing in the vogella interactive Learning Portal English 120 EUR *


* Annual fee for the first year. For each additional year, the annual fee is 30 EUR. All prices are listed w/o VAT.

Onsite or virtual Training

Place Date Language Price
At your location or virtual tbd German / English Upon request


Agenda (day 1-2) Download Agenda

Introduction into software testing

  • Strategies for using software tests
  • Architectural principles of testable software

Unit Test with JUnit 5

  • Usage of the JUnit 5 Framework
  • Development of own extensions for JUnit 5

Extensions for the efficient development of software tests

  • Usage of extended Assert Frameworks with Hamcrest, AssertJ or Truth Matcher
  • Usage of Mock Frameworks like e.g. Mockito

Integration tests and continuous integration

  • Integration testing for REST based Server API
  • Integration in Build Server
  • Continuous integration of Software while using Git, Github and Pull requests

Ensure and improve software quality

  • Implementation of in-house standards with tools such as Checkstyle
  • Usage of refactoring tools to optimize and update the code base
  • Integration of Code Checker into the daily workflow for constant improvement of personal development skills
  • Tips and Tricks and best practices of software testing

Agenda (day 3) Download Agenda

Introduction to testing Spring Boot with JUnit

  • Creating an example project with test setup
  • Overview of spring-boot-starter-test

Spring Boot Test Slices

  • Using test splice annotations to load specific app layers
  • Mocking with Mockito and WireMock
  • Performance considerations

Database handling for tests in Spring applications

  • Using profiles to set up test configurations
  • Creating database test fixtures
  • Using Test containers to set up the test database

Spring security test integration

  • Testing protected endpoints with spring-security-test