org.specrunner.source.text
Class Scenario
java.lang.Object
org.specrunner.source.text.NamedSentences
org.specrunner.source.text.Scenario
- All Implemented Interfaces:
- IValidable
- Direct Known Subclasses:
- ScenarioOutline
public class Scenario
- extends NamedSentences
Stand for a scenario.
- Author:
- Thiago Santos
|
Constructor Summary |
Scenario(String name)
Create a scenario with a name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Scenario
public Scenario(String name)
- Create a scenario with a name.
- Parameters:
name - A name.
getParent
public Feature getParent()
- Get the feature parent.
- Returns:
- The parent.
setParent
public void setParent(Feature parent)
- Set the parent.
- Parameters:
parent - The scenario parent.
validate
public String validate()
- Description copied from interface:
IValidable
- Perform object validation.
- Returns:
- The description of errors, if any, empty string otherwise.
Copyright © 2015. All rights reserved.