JUnit Example - Step 2

The unit test for class Inverter is realized by a class extending junit.framework.TestCase. It's constructor looks always the same and sets the test name. The test methods are public and prefixed by test. Most tests can be accomplished by using the various assert methods inherited from TestCase:

Continue with the next step . . .

© 2001 A. Heilwagen