Course Details

Previous Page


JUnit Fundamentals


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number



Overview/Description
JUnit is a framework for writing and running unit tests for Java. This course covers how to get started with JUnit, key members of the API, and how to create a test case and use fixtures.

Target Audience
Java programmers who wish to use JUnit for unit testing

Prerequisites
None

Expected Duration (hours)
1.4

Lesson Objectives

JUnit Fundamentals

  • start the course
  • understand the basics of unit testing with JUnit
  • set up JUnit in Eclipse
  • understand how to use the @Test annotation
  • run a JUnit test from Java code
  • understand JUnit assertions
  • understand how to use Assert number equality methods in JUnit tests
  • understand how to use Assert object equality methods in JUnit tests
  • understand how to use Assert array equality methods in JUnit tests
  • understand how to use assertThat methods in JUnit tests
  • understand how to use combined assertThat statements in JUnit tests
  • understand how to use assertThat methods with collections in JUnit tests
  • understand how to use custom assertThat matchers in JUnit tests
  • contrast Assume with Assert and use Assume statements in JUnit tests
  • configure JUnit test cases
  • work with JUnit test fixtures
  • practice modifying Java code to ensure proper testing scenarios
  • Course Number:
    jl_jtut_a01_it_enus