Consulting Training Blog Careers About Us Contact Us

Express JUnit Training

Course ID: INT7510
Duration: 1 Days

Upcoming Classes

Click the Get Notified button for priority notification when a class is next scheduled.

Get Notified

On Site/Private

Can't find a class that fits right for you? Contact us to inquire about scheduling your own private class

Contact Us


JUnit is the defacto standard framework for unit testing Java™ applications. Intertech’s Express JUnit teaches programmers how to setup, design and build unit tests that greatly improve the quality of their software.


Bring This Course To You

For groups of 5 or more, let Intertech bring this course to your location. Customized versions tailored towards your objectives are also available.

Learn More

Learning Objectives

After completing this course, students will be able to:

  • Setup and configure JUnit
  • Use the JUnit API
  • Follow unit testing best practices
  • Leverage JUnit extensions
  • Achieve total unit test code coverage
  • Write testable code 


This class is designed for Java programmers who unit test their code and may have an interest in test driven development. 


A basic understand of Java is required. JUnit makes extensive use of annotations. Therefore, Java developers should be comfortable with Java annotations.

Course Outline

JUnit Intro

  • Origins and foundation
  • Rules of unit testing
  • Obtaining, setup, configure JUnit
  • Unit test execution 


  • Test case/class
  • Test methods
  • Assert methods
  • Test suite
  • Test runner

Additional API and Best Practices

  • Additional JUnit annotations
  • Exception testing
  • Test Timeouts
  • Hamcrest Matchers
  • What to test
  • Unit test naming
  • Test organization 

Software Testing

  • Why unit testing
  • Types of tests
  • Types of unit tests
  • Black vs. white box testing
  • Code coverage
  • Testable code
  • Test-driven development

Stubs and Mock Objects

  • Simulating missing objects
  • Stubs
  • Mock Objects and Mock Frameworks
  • EasyMock
  • JMock
  • Stub vs. Mock

JUnit Extensions

  • xUnit
  • Unit testing and non-Java
  • JUnit extensions and tools 


  • DbUnit - to unit test the persistence layer
  • JWebUnit - to unit test Java Web applications 


Free Resources from Intertech

Complete Guide to Becoming a Full Stack Developer

Free Book Chapter: Spring Web

2 Free Resources: Missed Issues in Software Estimation and Stakeholder Questionnaire