Interface BeforeAfterClassMethodsProvider

All Known Implementing Classes:
AppBasedDefaultContextTypesTestingBase, AppBasedTestingBase, AppBasedWebsocketTestingBase, NoAppCustomContextTypesTestingBase, NoAppStartHttpServerCustomContextTypesTestingBase, NoAppStartHttpServerTestingBase, NoAppTestingBase, NoAppWebsocketTestingBase, SpincastTestBase

public interface BeforeAfterClassMethodsProvider
Provides methods that can be called before and after tests from a class are ran. To use with SpincastJUnitRunner.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called after the tests of the class are ran.
    void
    Called before the tests of the class are ran.
    void
    This method will be called if an exception occures during the beforeClass() execution.
  • Method Details

    • beforeClass

      void beforeClass()
      Called before the tests of the class are ran.
    • afterClass

      void 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.

    • beforeClassException

      void beforeClassException(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!