Java Testing Training
Level
BeginnerDuration
16h / 2 daysDate
Individually arrangedPrice
Individually arrangedJava Testing Training
Java Testing is a training for people programming in Java who want to test more effectively using JUnit, AssertJ, or Mockito. Well-written tests verify the correctness of algorithms and allow you to safely introduce changes into existing code. The training explains why we write unit tests at all and teaches how to create high-quality tests.
Who is this training for?
For everyone who wants to gain or expand their knowledge about tests in Java.
For developers who want to improve the quality of the code they create.
What You Will Learn
- You will gain skills in effective testing of code in Java using tools such as JUnit, AssertJ, and Mockito.
- You will learn why unit tests are important, how to write good tests, and when it is worth or not worth testing.
- You will master the basics of JUnit, including integrating it into a project and creating the first simple tests as well as valuable test cases.
- You will learn the advantages of the AssertJ library in creating assertions and why assertions built into the framework are insufficient.
- You will understand the principles of mocking with Mockito, which will allow you to separate tests from external dependencies.
Training Program
-
Unit test theory
- Motivation
- Principles of writing good tests
- Good practices and common mistakes
- When it is worth and not worth testing?
-
JUnit
- Integrating into a project
- First simple test
- Creating valuable test cases
-
AssertJ
- What are assertions?
- Why the ones built into the framework are insufficient
- AssertJ – the best library for assertions in Java
-
Mockito
- How to separate the test from external dependencies?
- Good practices related to mocking
- Project