Training: Automated software tests in Java with JUnit & Mockito

Automated software testing is essential for establishing a successful DevOps strategy within a company. Quality assurance measures such as refactoring, bug fixes, and change requests also require extensive retests, which are executed completely independently, ideally without manual intervention.

Implementing test-driven development (TDD) significantly reduces project effort compared to manual testing in a very short time. It doesn’t matter whether test automation hasn’t been used in the project for many months or even years.

In this course, you’ll learn how to develop test-driven projects without high risk and with minimal effort. At the same time, code quality will improve without the need for additional measures.

The workshop ‘Automated Software Testing in Java with JUnit & Mockito‘ is suitable not only for Java developers but also for project managers who need to introduce TDD into their company. The course content, which lasts two to four days, can be tailored to your specific needs through a free preliminary consultation.

The course is conducted entirely virtually/remotely and can also be booked individually for closed groups or individuals. If you’re interested in the course content, schedule a free consultation today. Each attendee receives a login with access to all paid articles for 12 months.

Content:

  • Test Automation
    • Manual vs. Automation
    • Need for Automation
    • Test Concepts and Responsibilities
    • Paradigms: TDD and BDD
  • Setup
    • Java, NetBeans, Maven, JUnit, Mockito, Cobertura, Testcontainers
  • Test Driven Development (TDD) with JUnit 5
    • Setup: Configuring JUnit for Maven
    • Test Class Structure
    • The AAA Principle
    • Writing Testable Code
    • Assertions
    • Test Simplification with BeanMatchers
    • Meaningful Tests & Test Coverage in Cobertura
    • Finding Problems When Test Cases Fail
    • Logging with Logback
  • Advanced Techniques
    • Parameterized Tests
    • Architectural Testing with ArchUnit
    • Component Testing in Maven with the Failsafe Plug-in
    • Test Prepare & CleanUp
    • Test Optimization with @ClassRule
    • Integrating Infrastructure Components with Test Containers
  • Getting Started with Mockito
    • Test Doubles, Mocks, Stubs, Fakes and Spys
    • Mocking Objects
    • Special Tasks with PowerMock
  • Behavioral Driven Development (BDD) with JGiven
    • Setting Up a Test Project
    • Writing Acceptance Tests
    • Continuous Integration vs. Integration Tests
  • Architectural Testing with ArchUnit
    • Software Architectures & Technical Debt
    • Optimizing Test Performance
  • Introduction to Mutation Testing