Home

Introduction

Getting Started

Junit TestRunner

Links








Introduction


Junit is a framework that provides you with a simple way to explicitly test specific areas of java programs. Using a framework like junit for testing programs can be very beneficial, because you must declare the expected results of the program being tested and compare those with the actual results. This lets you debug your program until you get those expected results. It also makes it possible to immediately see the effects of modifications you make to your program. Junit promotes the idea of first testing and then coding, which some programmers believe can increase the productivity and the stability of the program. Our project will focus on how to use junit to its full potential by demonstrating sample programs and finishing off with tests on our own mastermind game.