public class JGivenMethodRule
extends java.lang.Object
implements org.junit.rules.MethodRule
| Modifier and Type | Field and Description |
|---|---|
protected com.tngtech.jgiven.impl.ScenarioBase |
scenario |
| Constructor and Description |
|---|
JGivenMethodRule() |
JGivenMethodRule(com.tngtech.jgiven.impl.ScenarioBase scenario) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod method,
java.lang.Object target) |
protected void |
failed(java.lang.Throwable e) |
com.tngtech.jgiven.impl.ScenarioBase |
getScenario()
Returns the ScenarioBase instance of this rule
|
protected void |
starting(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod testMethod,
java.lang.Object target) |
protected void |
succeeded() |
public JGivenMethodRule()
public JGivenMethodRule(com.tngtech.jgiven.impl.ScenarioBase scenario)
public com.tngtech.jgiven.impl.ScenarioBase getScenario()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod method,
java.lang.Object target)
apply in interface org.junit.rules.MethodRuleprotected void succeeded()
throws java.lang.Throwable
java.lang.Throwableprotected void failed(java.lang.Throwable e)
throws java.lang.Throwable
java.lang.Throwableprotected void starting(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod testMethod,
java.lang.Object target)