Friday, 5 September 2008

JUnit testing in netbeans

Netbeans has JUnit test, which allows you to create your own test packages.

"Tools -> Create JUnit Tests" will generate a few Java tests in "Test packages". You either can use automatically generated tests to test your classes or write more test classes for your own tests.

Here is a very good example.

No comments: