@Target(value=TYPE) @Retention(value=RUNTIME) @ExtendWith(value=com.github.junit5docker.DockerExtension.class) public @interface Docker
This annotation is the junit-docker entry point.
Adding this annotation to a test's class will start a docker container before running the tests and will be stop at the end of the tests. This is done once per class.
| Modifier and Type | Required Element and Description |
|---|---|
String |
image |
Port[] |
ports |
| Modifier and Type | Optional Element and Description |
|---|---|
Environment[] |
environments |
boolean |
newForEachCase |
WaitFor |
waitFor |
public abstract String image
public abstract Environment[] environments
EnvironmentCopyright © 2017. All rights reserved.