Unit Testing with JUnit and Mockito


By now Unit Testing is a well-known and appreciated practice exercised by many development teams around the globe. Implementing effective and useful unit testing is a complicated task that requires developers to have both discipline and familiarity with a set of test automation tools.
This training explains the unit-testing methodology and introduces a recommended set of open-source testing tools (JUnit, Mockito).
This Training includes many hands-on sessions.

Target Audience

Developers, team leaders and project managers


Familiarity with a programming language


Introduction to Unit-Testing:

  • Traditional software testing
  • Functional/Regression/Integration/Unit Testing overview
  • Why is it so important?
  • Is it cost-effective?

JUnit overview:

  • Introduction
  • TestCase
  • TestSuite
  • Test’s life cycle

Mock Objects Using Mockito:

  • Mediator objects and Testing
  • Introduction to Mock objects
  • What should I Mock
  • Doubles, Mocks, Spys
  • The Mockito API
  • Power Mockito

Design for Testability Overview:

  • Dependencies and Dependency Injection
  • Refactoring
  • Working with Legacy Code


1 day

Enroll Now
Contact us