public class DescribedExternalResource
extends java.lang.Object
implements org.junit.rules.TestRule
| Constructor and Description |
|---|
DescribedExternalResource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after(org.junit.runner.Description description)
Override to tear down your specific external resource.
|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
protected void |
before(org.junit.runner.Description description)
Override to set up your specific external resource.
|
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuleprotected void before(org.junit.runner.Description description)
throws java.lang.Throwable
java.lang.Throwable - if setup fails (which will disable afterprotected void after(org.junit.runner.Description description)
throws java.lang.Throwable
java.lang.Throwable