Interface TestRunner

All Known Implementing Classes:
AnnotationsHandlerRunner, EmbeddedServerRunner

public interface TestRunner
A test adapter: this is a class that implements commons test lifecycle hooks (before-all, before, after-all, after), thus will be able to be used in various test engine:
  • JUnit 4 Rules.
  • JUnit 4 Runner.
  • JUnit Jupiter Extensions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Method called after all tests have been run.
    void
    afterEach(Object target)
    Method called after running unit test.
    void
    Method called before instantiating the test class and any test instance.
    void
    Method called before running unit test.
  • Method Details

    • beforeAll

      void beforeAll()
      Method called before instantiating the test class and any test instance.
    • afterAll

      void afterAll()
      Method called after all tests have been run.
    • beforeEach

      void beforeEach(Object target)
      Method called before running unit test.
      Parameters:
      target - The test class instance.
    • afterEach

      void afterEach(Object target)
      Method called after running unit test.
      Parameters:
      target - The test class instance.