CSE 219 : Recitation 9

Unit Testing with JUnit

Notify your Recitation TA once you have completed this recitation such that they may verify your work.


For today's recitation you will learn about Unit Testing using the JUnit testing framework discussed in lecture earlier. JUnit has become a Java standard for test and is distributed with most IDEs these days. For this recitation, you will be using the JUnit tutorial provided by the NetBeans IDE. Click on the following link to open this tutorial:

This tutorial introduces the JUnit test modules and test suites. Complete the entire tutorial (for JUnit 4 only, you can skip the tasks for version 3) and show your successful JUnit tests to your TA upon completion. Unit testing is a very important skill in industry so please do your best to follow along with the tutorial and complete all steps.