org.jbehave.core.parser
Class PatternStoryParser
java.lang.Object
org.jbehave.core.parser.PatternStoryParser
- All Implemented Interfaces:
- StoryParser
public class PatternStoryParser
- extends Object
- implements StoryParser
Pattern-based story parser, which uses the keywords provided to find the
scenarios and the steps in the text stories.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternStoryParser
public PatternStoryParser()
PatternStoryParser
public PatternStoryParser(KeyWords keywords)
defineStoryFrom
public Story defineStoryFrom(String storyAsText)
- Description copied from interface:
StoryParser
- Defines story from its textual representation
- Specified by:
defineStoryFrom
in interface StoryParser
- Parameters:
storyAsText
- the textual representation
- Returns:
- The Story
defineStoryFrom
public Story defineStoryFrom(String storyAsText,
String storyPath)
- Description copied from interface:
StoryParser
- Defines story from its textual representation and (optional) story path
- Specified by:
defineStoryFrom
in interface StoryParser
- Parameters:
storyAsText
- the textual representationstoryPath
- the story path, may be null
- Returns:
- The Story
splitScenarios
protected List<String> splitScenarios(String storyAsText)
splitScenariosWithKeyword
protected List<String> splitScenariosWithKeyword(String storyAsText)
splitScenariosWithPattern
protected List<String> splitScenariosWithPattern(String storyAsText)
Copyright © 2003-2010. All Rights Reserved.