Course Outline



  • The participants must be comfortable with programming constructs in Java


  • 2-3 days

Lab Setup

  • Hardware Configuration - Participants must have access to a system with the following hardware configuration
    • 2GB of free RAM, 20GB of free disk space and full network connectivity
  • Software Configuration
    • Ubuntu 16.04 Desktop Edition (sudo/root access required)
    • Firefox and Chrome Browsers
    • Install - JDK

Course Outline

Introduction to JUnit
  • Installation and Environment setup
  • Need of JUnit testing
  • JUnit testing - “Hello World”
JUnit Testing Framework
  • Assert class
  • TestCase class
  • TestSuit class
  • TestResult class
Assertions and Annotations
  • Learn about various JUnit test methods
  • Learn about basic JUnit Annotations
  • Creating a simple test
Advanced Concepts
  • Aggregating tests in suites
  • Parameterized tests
  • Exception testing
  • Timeout for tests
JUnit extensions and tools
  • XMLUnit
  • MockObject
  • EvoSuite
  • Other JUnit extensions and tools
  • Introduction to Mocking
  • Integration with JUnit
  • Expecting and Varying Calls
  • Exception Handling
More about Mockito
  • Methods to create mock objects
  • Configuring mocks
  • Verifying method call order
  • Calling Callbacks with Mockito
  • Spies in Mockito
  • Reseting and Reusing mocks

The classroom training will be provided in Bangalore (Bengaluru), Chennai, Hyderabad or Mumbai and will be conducted in the client's premises. All the necessary hardware/software infrastructure must be provided by the client.