Showing posts with label unit. Show all posts
Showing posts with label unit. Show all posts

Monday, September 26, 2011

JUnit4 Test

Here's how a unit test can be written using Junit4.

class / test

Tip: look at the console output to follow the flow of execution

Sunday, September 25, 2011

Junit3 Tests

Here is an example of using Junit3 to unit test a class

class / test

Tip: look at the console output to follow the flow of execution (constructor / setup / test / teardown)