Training courses

Training courses to help you develop your own professional skills and knowledge.

Back to training list
Pavel Herout

Unit Testing

Unit tests represent a fundamental method for verifying the quality of a developer's work.
Unit Testing

LanguageCZ Duration of the course1 day (from 09:00 to 17:00) LevelBasic PlaceOn-site

Why attend the course?

Unit tests are a fundamental method for verifying the quality of a developer's work. They are not only highly useful during the development of software itself but also invaluable during later modifications, refactoring, and similar activities, where they seamlessly function as regression tests without requiring any changes.

When a suitable framework is used alongside a modern development environment, writing unit tests requires only minimal extra effort from developers. However, this effort brings significant benefits, such as better-structured code, a higher level of confidence in the correct functionality of the code, and an overall positive contribution by the developer to the improved quality of the entire application under development.

Importantly, most of the topics covered will be applied practically to a gradually evolving application. Practical application of the knowledge gained will take up half of the course's allotted time.

As a bonus, you'll take home extensive learning materials (70+ pages) and a wealth of demonstration programs.

Key Topics

  • Early Testing Saves Time and Money
    This well-proven principle finds a perfect demonstration in unit testing, which can be implemented right from the beginning of the coding process. Before diving into programming, it’s useful to familiarize yourself with a few key terms related to testing.
  • JUnit 5 as the De-Facto Industry Standard
    Understanding the basic structure and modules of this framework is essential. While not all features will be utilized from the outset, writing unit tests will gradually incorporate more of JUnit's capabilities step by step.
  • Truly Fundamental Knowledge in Practice
    Through a practical example, we’ll thoroughly explore three core sets of features essential for anyone working with unit tests: assertion methods, handling exceptions, and using actions before and after executing test cases.
  • Convenient Extras
    JUnit offers numerous 'quality of life' features that make life easier not just for developers but also for those involved in subsequent DevOps activities.
  • Parameterized Tests
    The DRY (Don't Repeat Yourself) principle is, or should be, omnipresent in software development. Unsurprisingly, it applies to unit testing as well. We’ll demonstrate JUnit's extensive options in this regard, allowing for clean and elegant tests.
  • Code Coverage Measurement
    Code-based metrics are among the most accurate indicators of product quality and progress in development. While detailed coverage measurement isn’t the primary focus of this course, you’ll learn and practice fundamental skills in this area. These skills will enable you to convincingly demonstrate the quality of your work both to others and yourself.

Requirements

  • The course is designed for Java developers who may have little to no knowledge of testing.
  • On the other hand, the course is not suitable for testers, as its content does not align with their job roles.

Trainers

Pavel Herout

Pavel Herout

Author of 12 books on programming. Author or co-author of more than 100 professional articles and teaching materials. He is the guarantor of two specialized courses at the University of West Bohemia in Pilsen, where he focuses on teaching software testing. All of this defines Pavel Herout as an expert in his field. In 1985, he graduated from the University of Mechanical and Electrical Engineering in Pilsen with a degree in Electronic Computers. In 1999, he defended his dissertation and earned a PhD in Computer Science and Engineering. Four years later, he completed his habilitation and obtained the title of Associate Professor. His work covers programming languages, software technologies, and, for the past 10 years, primarily software testing. One of his notable contributions to the field of testing is his book Testing for Programmers.

Upcoming dates

28. 2. 2025 Prague 12 CZ Unit Testing

Pavel Herout

320 EUR

Buy now

Do you want tailored training?

We will prepare tailored training for you, at the time and place you choose. Fill in the basic information and we will get back to you.

By submitting the form you agree to privacy policy.