public class TestStep extends Event
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
initialName
The standard name of the initial transition.
|
| Constructor and Description |
|---|
TestStep()
Creates a default TestStep.
|
TestStep(java.lang.String name)
Creates a named TestStep.
|
| Modifier and Type | Method and Description |
|---|---|
TestStep |
addOperation(Operation operation)
Adds the Operation exercised by this TestStep.
|
Operation |
getOperation()
Returns the Operation exercised by this TestStep.
|
java.lang.String |
getState()
Returns the name of the expected target State.
|
java.lang.Boolean |
getVerify()
Returns whether this TestStep step is verified, as a Boolean object.
|
boolean |
isFailure()
Reports whether this TestStep represents an expected failure case.
|
boolean |
isInitial()
Reports whether this TestStep is the initial (empty) TestStep.
|
boolean |
isRefused()
Report whether this TestStep was refused.
|
boolean |
isVerify()
Reports whether this TestStep step is verified.
|
void |
receive(Grounding grounding)
Receive a Grounding generator for grounding this TestStep.
|
TestStep |
recordInputs(Operation attempted)
Records a snapshot of the Input bindings of an Operation.
|
TestStep |
recordRefusal()
Rename this TestStep to indicate that it was refused.
|
TestStep |
recordResults(Operation executed)
Records a snapshot of the Output or Failure bindings of an Operation.
|
TestStep |
setName(java.lang.String name)
Sets the name of this TestStep.
|
TestStep |
setState(java.lang.String state)
Sets the name of the expected target State.
|
TestStep |
setVerify(boolean value)
Sets whether this TestStep step should be verified.
|
requestName, responseName, validateequals, getName, hashCode, setName, toStringsafeEquals, safeHashCode, semanticErrorpublic static final java.lang.String initialName
public TestStep()
public TestStep(java.lang.String name)
name - the name of this TestStep.public TestStep setName(java.lang.String name)
public TestStep addOperation(Operation operation)
operation - the Operation to add.public Operation getOperation()
public TestStep setState(java.lang.String state)
state - the name of the target State.public java.lang.String getState()
public TestStep setVerify(boolean value)
value - true or false.public boolean isVerify()
public java.lang.Boolean getVerify()
public TestStep recordInputs(Operation attempted)
attempted - the Operation that was just attempted.public TestStep recordResults(Operation executed)
executed - the Operation that was just executed.public TestStep recordRefusal()
public boolean isRefused()
public boolean isInitial()
public boolean isFailure()
public void receive(Grounding grounding)
grounding - a Grounding generator.