Class DockerRule<T extends DockerContainer>
- java.lang.Object
-
- org.jenkinsci.test.acceptance.docker.DockerRule<T>
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public final class DockerRule<T extends DockerContainer> extends Object implements org.junit.rules.TestRule
Starts a Docker container for a test.- See Also:
DockerClassRule
-
-
Constructor Summary
Constructors Constructor Description DockerRule(Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
T
get()
DockerRule<T>
localOnly()
-
-
-
Method Detail
-
localOnly
public DockerRule<T> localOnly()
-
get
public T get() throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
- Specified by:
apply
in interfaceorg.junit.rules.TestRule
-
-