public class Scenario extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Scenario.Recorder
Plugin to serialize the
Scenario s in the test plan |
static class |
Scenario.Step |
Constructor and Description |
---|
Scenario() |
Modifier and Type | Method and Description |
---|---|
void |
addGiven(String given)
then s should be added last-to-first |
void |
addThen(String then,
Scenario.Step.Result result,
Throwable throwable)
Unlike
given s or when s, then s are added first-to-last |
void |
addWhen(String when)
when s should be added last-to-first |
Iterable<String> |
getGivens() |
Iterable<Scenario.Step> |
getThens() |
Iterable<String> |
getWhens() |
String |
toString() |
public void addGiven(String given)
then
s should be added last-to-firstpublic void addWhen(String when)
when
s should be added last-to-firstpublic void addThen(String then, Scenario.Step.Result result, Throwable throwable)
given
s or when
s, then
s are added first-to-lastthen
- The description for the then
stepresult
- Whether the then
succeeded or failedthrowable
- The exception that caused the failure, or null
public Iterable<Scenario.Step> getThens()
Copyright © 2018. All rights reserved.