public class DockerClassRule<T extends DockerContainer> extends Object implements org.junit.rules.TestRule
ClassRule.
Compared to DockerRule this interacts better with Timeout,
including rules like JenkinsRule which run that implicitly:
you do not want the timeout applied to a potentially lengthy docker-build command.| Constructor and Description |
|---|
DockerClassRule(Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
T |
create() |
DockerClassRule<T> |
localOnly() |
public DockerClassRule<T> localOnly()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRulepublic T create() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2004–2018. All rights reserved.