- All Known Implementing Classes:
public interface BeforeAfterClassMethodsProvider
Provides methods that can be called before and after tests from a class are ran. To use with
beforeClassvoid beforeClass()Called before the tests of the class are ran.
afterClassvoid afterClass()Called after the tests of the class are ran.
This will only be called if the beforeClass() method completed successfully, so you can be sure that the instanciation of the class is complete here.
(Throwable ex)This method will be called if an exception occures during the
beforeClass()execution. Be careful!! Here, you are pretty much certain that the instanciation of the class was not succesful, so you can't use any of its methods!