public class Story extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Story(Class<?> userStoryClass) |
protected |
Story(String id,
String storyName,
String displayName,
ApplicationFeature feature,
String path) |
|
Story(String id,
String storyName,
String storyClassName,
String displayName,
String path,
ApplicationFeature feature) |
|
Story(String id,
String storyName,
String storyClassName,
String displayName,
String path,
ApplicationFeature feature,
String narrative) |
|
Story(String id,
String storyName,
String storyClassName,
String displayName,
String path,
ApplicationFeature feature,
String narrative,
String type) |
| Modifier and Type | Method and Description |
|---|---|
Story |
asFeature() |
TestTag |
asQualifiedTag() |
TestTag |
asTag() |
static Story |
called(String storyName) |
boolean |
equals(Object o) |
static Story |
from(Class<?> userStoryClass)
Obtain a story instance from a given story class.
|
String |
getDisplayName() |
ApplicationFeature |
getFeature() |
static Class<?> |
getFeatureClass(Class<?> userStoryClass)
What feature does this story belong to?
|
String |
getId() |
String |
getName()
Each story has a descriptive name.
|
String |
getNarrative() |
String |
getNarrativeSummary() |
String |
getPath() |
String |
getReportName() |
String |
getReportName(ReportType type)
Find the name of the report for this story for the specified report type (XML, HTML,...).
|
String |
getStoryClassName() |
String |
getStoryName() |
String |
getType() |
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 path) |
Story |
withType(String type) |
protected Story(Class<?> userStoryClass)
public Story(String id, String storyName, String storyClassName, String displayName, String path, ApplicationFeature feature)
public Story(String id, String storyName, String storyClassName, String displayName, String path, ApplicationFeature feature, String narrative)
public Story(String id, String storyName, String storyClassName, String displayName, String path, ApplicationFeature feature, String narrative, String type)
protected Story(String id, String storyName, String displayName, ApplicationFeature feature, String path)
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 static Class<?> getFeatureClass(Class<?> userStoryClass)
public static Class<?> testedInTestCase(Class<?> testClass)
public String getName()
public String getDisplayName()
public String getStoryClassName()
public String getReportName(ReportType type)
public String getReportName()
public ApplicationFeature getFeature()
public String getPath()
public String getStoryName()
public String getNarrative()
public String getNarrativeSummary()
public String getType()
public Story asFeature()
public TestTag asTag()
public TestTag asQualifiedTag()
Copyright © 2023. All rights reserved.