JUnit4 - First Steps

(Free Web Tutorial)

by Michael Thomas

JUnit Home Page

In this tutorial you will install JUnit, create your first Java Project using JUnit and discuss TDD.

This tutorial covers:

JUnit Version within Eclipse Neon.1: JUnit v4.12.0 (as of 10/25/2016)
For reference: JUnit web site latest: JUnit v4.12.0 Updated 04-Dec-2014
Install file: <Use the one built into Eclipse>

Optional Download: Click ( MyJUnit4FirstSteps.zip ) to download a zip of the final files in the Eclipse workspace.

Prerequisites

Objectives

Terms

FYI - Possible Errors:

JUnit Install


Overview

Create a Java Project

Create our JUnit Test Java Class

Create our Implementing Java Class

Development Process Overview

Development Process Example

Complete the Project

Additional Projects/Labs

General JUnit Test Case Info