public class ContainerTestRunnerRule extends Object implements org.junit.rules.TestRule
Note that this means that the method code will be run in a different JVM than the unit test itself, so keep this in mind when using rules, fields and the like in your tests.
Explicitly supported features are:
| Modifier and Type | Class and Description |
|---|---|
static class |
ContainerTestRunnerRule.TestRunnerType |
| Constructor and Description |
|---|
ContainerTestRunnerRule(ContainerTestRunnerRule.TestRunnerType type)
Creates a new test runner rule.
|
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
public ContainerTestRunnerRule(ContainerTestRunnerRule.TestRunnerType type)
Type CONTAINER will run the test code in the container. Type REMOTE_TEST will run test code in a local JVM (not the container JVM) and just run the test setup and verification code in the container.
type - Running typeCopyright © 2014. All rights reserved.