JUnit 4 provides BeforeClass annotation to initialize costly resources for the use of all test cases in the test class. One important thing to remember is that the method marked as BeforeClass would run only once and the resource initialized by it would be shared by all test methods. The method marked as BeforeClass would […]
Continue reading…