Prev Next

Testing / Junit Interview questions II

Procedure to create a simple Junit test class.

Junit3

1.Define a subclass of TestCase.

2.Override the setUp() method to initialize object(s) under test.

3.Optionally override the tearDown() method to release object(s) under test.

4.Define one or more public testXYZ() methods that exercise the object(s) under test and assert expected results.

More Related questions...

Show more question and Answers...


Comments & Discussions