Training Compendium CE

Training goals dlearning

Workshops are based on simple, real-life, spring-based application as a case study, which is used to practice designing, writing and maintaining of unit tests. We focus on the most useful and popular nowadays frameworks: JUnit, Mockito and AssertJ, using Java 8 features extensively. We not only describe their capabilities in detail, but also show how to combine them together to significantly facilitate the creation of well separated and transparent test cases. Participants will acquire practical knowledge about the most common mistakes and best practices (including TDD and BDD).


  • A good understanding of unit testing, best practices and must-know testing frameworks
  • Access to exclusive materials covering the scope of the workshops.

Conspect Show list

  1. Introduction
    • The purpose of software tests
    • Types of tests and key differences
    • Do we really need unit tests? - case study
    • Place of tests in software deployment process
  2. JUnit
    • Introduction: general rules, execution order, annotations, assertions
    • Exercise Testing exceptions: @Rule and @ExpectedException
    • Exercise
    • Test suites, parameterized tests, categories
    • Exercise
  3. Unit test best practises
    • Defining good unit tests
    • Examples of poor unit tests - case studies
    • Naming conventions
    • Test boundaries, avoiding interdependencies
    • TDD and BDD
    • Is my code coverage sufficient?
    • Exercise
  4. Mocking with Mockito
    • The need for mocking frameworks
    • Difference between mocks, stubs, fake & dummy objects
    • Basic mockito usage, BDD in Mockito
    • Exercises
    • Mockito advanced techniques
    • Exercises
  5. Let’s read our tests like a book - AssertJ
    • Let’s play with AssertJ - replacing Junit assertions with AssertJ
    • Exercise
    • Can we make current test cases simpler?
    • AssertJ additions for Java 8
    • More Exercises - including refactoring of existing test cases
  6. Exercises
    • Complex exercises using combination of previously introduced libraries
Download conspect training as PDF

Additional information

  • Basic Python knowledge,
  • Recommended: basic machine learning Knowledge
Difficulty level
Duration 2 days

The participants will obtain certificates signed by Compendium CE.


Certified Compendium CE Trainer.

Other training Compendium CE | Web Design and Programming

Training thematically related



Contact form

Please fill form below to obtain more info about this training.

* Fields marked with (*) are required !!!

Information on data processing by Compendium - Centrum Edukacyjne Spółka z o.o.

400 EUR


Discount codes

Discount code may refer to (training, producer, deadline). If you have a discount code, enter it in the appropriate field.
(green means entering the correct code | red means the code is incorrect)



Traditional training

Sessions organised at Compendium CE are usually held in our locations in Kraków and Warsaw, but also in venues designated by the client. The group participating in training meets at a specific place and specific time with a coach and actively participates in laboratory sessions.

Dlearning training

You may participate from at any place in the world. It is sufficient to have a computer (or, actually a tablet, or smartphone) connected to the Internet. Compendium CE provides each Distance Learning training participant with adequate software enabling connection to the Data Center. For more information, please visit site



Paper materials

Traditional Materials: The price includes standard materials issued in the form of paper books, printed or other, depending on the arrangements with the manufacturer.

Electronic materials

Electronic Materials: These are electronic training materials that are available to you based on your specific application: Skillpipe, eVantage, etc., or as PDF documents.

Ctab materials

Ctab materials: the price includes ctab tablet and electronic training materials or traditional training materials and supplies provided electronically according to manufacturer's specifications (in PDF or EPUB form). The materials provided are adapted for display on ctab tablets. For more information, check out the ctab website.



No deadlines for this training.

Suggest your own appointment

Upcoming Compendium CE training

Training schedule
Compendium CE