public interface TestPlugin
Modifier and Type | Method and Description |
---|---|
default void |
afterShutdown(TestContext testContext)
This method is executed after shutting down the SeedStack environment used for testing.
|
default String[] |
arguments(TestContext testContext)
Allow the plugin to specify arguments used for launching the SeedStack environment used for testing.
|
default void |
beforeLaunch(TestContext testContext)
This method is executed before launching the SeedStack environment used for testing.
|
default Map<String,String> |
configurationProperties(TestContext testContext)
Allow the plugin to specify configuration properties for the SeedStack environment used for testing.
|
default List<Class<? extends TestDecorator>> |
decorators()
Returns the list of
TestDecorator to apply to each test. |
boolean |
enabled(TestContext testContext)
This method should return true to enable the plugin or false to completely disable it.
|
default Optional<Class<? extends Exception>> |
expectedException(TestContext testContext)
Allow the plugin to specify the exception that is expected to be the outcome of the SeedStack environment
launch.
|
default Map<String,String> |
kernelParameters(TestContext testContext)
Allow the plugin to specify kernel parameters for the SeedStack environment used for testing.
|
default Optional<? extends SeedLauncher> |
launcher(TestContext testContext)
Allow the plugin to specify a particular
SeedLauncher to be used to launch the SeedStack environment
used for testing. |
default LaunchMode |
launchMode(TestContext testContext)
Allow the plugin to specify a particular
LaunchMode for the test. |
default boolean |
separateThread(TestContext testContext)
Allow the plugin to specify if the launch should occur in a separate thread or the main thread.
|
boolean enabled(TestContext testContext)
testContext
- the test context.default List<Class<? extends TestDecorator>> decorators()
TestDecorator
to apply to each test.TestDecorator
classes.default void beforeLaunch(TestContext testContext)
testContext
- the test context.default void afterShutdown(TestContext testContext)
testContext
- the test context.default String[] arguments(TestContext testContext)
testContext
- the test context.default Map<String,String> configurationProperties(TestContext testContext)
testContext
- the test context.default Optional<Class<? extends Exception>> expectedException(TestContext testContext)
testContext
- the test context.default LaunchMode launchMode(TestContext testContext)
LaunchMode
for the test. The LaunchMode.ANY
mode
specifies that this plugin doesn't require a particular mode.testContext
- the test context.default Optional<? extends SeedLauncher> launcher(TestContext testContext)
SeedLauncher
to be used to launch the SeedStack environment
used for testing.testContext
- the test context.SeedLauncher
to be used to launch the test environment.default boolean separateThread(TestContext testContext)
testContext
- the test context.default Map<String,String> kernelParameters(TestContext testContext)
testContext
- the test context.Copyright © 2013-2018–2019 SeedStack. All rights reserved.