Testing with JUnit

Course Number:


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
Share on facebook
Share on twitter
Share on linkedin
Share on email

Related Posts

About Us

IT Training, Agile Ways of Working and High Impact Talent Development Strategies

Let Us Come to You!

Classes recently delivered in: Atlanta, Boston, Chicago, Columbus, Dallas, Detroit, Indianapolis, Jerusalem, London, Milan, New York, Palo Alto, Phoenix, Pittsburgh, Portland, Raleigh, San Antonio, San Diego, San Francisco, San Jose, Seattle, Springfield, Mass., St. Louis, Tampa and more!