1.

How does JUnit help in achieving tests isolation?

Answer»

For calling test methods, JUnit creates SEPARATE individual INSTANCES of the test class. For example, if the test class contains 10 TESTS, then JUnit creates 10 instances of the class to execute the test methods. In this way, every test is ISOLATED from the other.



Discussion

No Comment Found