public class Story extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Story(Class<?> userStoryClass) |
protected |
Story(String qualifiedStoryClassName,
String storyName,
String qualifiedFeatureClassName,
String featureName,
String path) |
| Modifier and Type | Method and Description |
|---|---|
static Story |
called(String storyName) |
boolean |
equals(Object obj) |
static Story |
from(Class<?> userStoryClass)
Obtain a story instance from a given story class.
|
ApplicationFeature |
getFeature() |
Class<?> |
getFeatureClass()
What feature does this story belong to?
|
String |
getFeatureId() |
String |
getFeatureName() |
String |
getId() |
String |
getName()
Each story has a descriptive name.
|
String |
getPath() |
String |
getReportName() |
String |
getReportName(ReportType type)
Find the name of the report for this story for the specified report type (XML, HTML,...).
|
Class<?> |
getUserStoryClass()
The underlying user story class that represents this story.
|
int |
hashCode() |
static Class<?> |
testedInTestCase(Class<?> testClass)
Returns the class representing the story that is tested by a given test class
This is indicated by the Story annotation.
|
static Story |
withId(String storyId,
String storyName)
Create a story using a full class name as an id.
|
static Story |
withId(String storyId,
String storyName,
String featureClassName,
String featureName) |
static Story |
withIdAndPath(String storyId,
String storyName,
String storyPath) |
static Story |
withIdAndPathAndFeature(String storyId,
String storyName,
String storyPath,
String featureClassName,
String featureName) |
Story |
withNarrative(String narrative) |
Story |
withPath(String storyPath) |
protected Story(Class<?> userStoryClass)
public String getId()
public static Story from(Class<?> userStoryClass)
public static Story withId(String storyId, String storyName)
public static Story withId(String storyId, String storyName, String featureClassName, String featureName)
public static Story withIdAndPathAndFeature(String storyId, String storyName, String storyPath, String featureClassName, String featureName)
public Class<?> getUserStoryClass()
public Class<?> getFeatureClass()
public static Class<?> testedInTestCase(Class<?> testClass)
public String getName()
public String getFeatureName()
public String getReportName(ReportType type)
public String getReportName()
public String getFeatureId()
public ApplicationFeature getFeature()
public String getPath()
Copyright © 2011–2014 Wakaleo Consulting. All rights reserved.