Java Testing Training

Level

Beginner

Duration

16h / 2 days

Date

Individually arranged

Price

Individually arranged

Java 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?
  • logo infoshare For everyone who wants to gain or expand their knowledge about tests in Java.
  • logo infoshare 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

Contact us

we will organize training for you tailored to your needs

Przemysław Wołosz

Key Account Manager

przemyslaw.wolosz@infoShareAcademy.com

    The controller of your personal data is InfoShare Academy Sp. z o.o. with its registered office in Gdańsk, al. Grunwaldzka 427B, 80-309 Gdańsk, KRS: 0000531749, NIP: 5842742121. Personal data are processed in accordance with information clause.