Class AnnotationsHandlerRunner
java.lang.Object
com.github.mjeanroy.junit.servers.engine.AnnotationsHandlerRunner
- All Implemented Interfaces:
TestRunner
An engine that will handle various annotations defined by Junit-Servers:
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationsHandlerRunner
(EmbeddedServer<?> server, AbstractConfiguration configuration) Create test lifecycle engine that will setup following Junit-Servers annotations declared in test class:TestServer
TestServerConfiguration
TestHttpClient
-
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.toString()
-
Constructor Details
-
AnnotationsHandlerRunner
Create test lifecycle engine that will setup following Junit-Servers annotations declared in test class:- Parameters:
server
- The embedded server used in the tested class instance.configuration
- The embedded server configuration.
-
-
Method Details
-
beforeEach
Description copied from interface:TestRunner
Method called before running unit test.- Specified by:
beforeEach
in interfaceTestRunner
- Parameters:
target
- The test class instance.
-
afterEach
Description copied from interface:TestRunner
Method called after running unit test.- Specified by:
afterEach
in interfaceTestRunner
- Parameters:
target
- The test class instance.
-
toString
-
beforeAll
public void beforeAll()Description copied from interface:TestRunner
Method called before instantiating the test class and any test instance.- Specified by:
beforeAll
in interfaceTestRunner
-
afterAll
public void afterAll()Description copied from interface:TestRunner
Method called after all tests have been run.- Specified by:
afterAll
in interfaceTestRunner
-