org.specrunner.source.text
Class Scenario

java.lang.Object
  extended by org.specrunner.source.text.NamedSentences
      extended by 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

Field Summary
 
Fields inherited from class org.specrunner.source.text.NamedSentences
name, sentences
 
Constructor Summary
Scenario(String name)
          Create a scenario with a name.
 
Method Summary
 Feature getParent()
          Get the feature parent.
 void setParent(Feature parent)
          Set the parent.
 String validate()
          Perform object validation.
 
Methods inherited from class org.specrunner.source.text.NamedSentences
addSentence, getName, getSentences, setName, setSentences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scenario

public Scenario(String name)
Create a scenario with a name.

Parameters:
name - A name.
Method Detail

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.