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 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 *

Purchase

* 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

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

  • Unit testing Spring projects
  • Setting up integration tests
  • Testing Thymeleaf based Controllers
  • Testing REST APIs with Spring test utilities

Defining which parts of your Spring application to load

  • Using test splice annotations to load specific app layers
  • Mockito integration
  • Performance considerations

Database handling for test in Spring applications

  • Creating test fixtures for the database
  • Using an in-memory database for tests
  • Trade-offs of using an in-memory database

Spring security test integration

  • Testing secured endpoints