The Testing with JUnit course not only covers the JUnit API and mechanics of the tool, it also gives students a strong understanding of best practices. Additionally, the course covers a basic introduction to Test Driven Development (TDD).

Course Duration: 2 days
Course Objectives:
  • Gain an understanding of what JUnit is and how to use it
  • Get hands on practice writing test methods and test fixtures
  • Understand how TDD can help you write better code, faster
  • Learn about common best practices and pitfalls
Course Outline:
  • Unit Testing Overview
    • Basic Principles
    • Automated Test
    • Testing The Right Things
  • Testing With JUnit
    • An Overview Of JUnit
    • JUnit Features and Advantages
    • Writing JUnit Test
    • Assertions
    • Test Methods
    • Exception Testing
    •  Fixtures
    • The JUnit Test Lifecycle
    • Invocation Order
  • Best Practices
    • Test Are Real Code
    • Be Thorough
    • Test Your Inputs
    • Small vs Large
    • Break It
    • Bug Fixes
    • Goals
    • Anti-Patterns
  • Test Suites
    • Creating Test Suites
    • Executing Suites
    • Categories
  • Test Driven Development (TDD)
    • Overview
    • Principles and Techniques
    • Benefits and Limitations
    • Best Practices
    • TDD Anti-Patterns
  • Testable Design
    • Testable Code
    • Test Fakes, Stubs and Doubles
    • Mock Objects