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 TypeMethodDescriptionvoid
afterAll()
Method called after all tests have been run.void
Method called after running unit test.void
Method called before instantiating the test class and any test instance.void
beforeEach
(Object target) 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
Method called before running unit test.- Parameters:
target
- The test class instance.
-
afterEach
Method called after running unit test.- Parameters:
target
- The test class instance.
-