|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.thucydides.core.model.Story
public class Story
Represents a given user story. Used to record test results and so on.
| Constructor Summary | |
|---|---|
protected |
Story(Class<?> userStoryClass)
|
protected |
Story(String qualifiedStoryClassName,
String storyName,
String qualifiedFeatureClassName,
String featureName)
|
| Method Summary | |
|---|---|
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 |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Story(Class<?> userStoryClass)
protected Story(String qualifiedStoryClassName,
String storyName,
String qualifiedFeatureClassName,
String featureName)
| Method Detail |
|---|
public String getId()
public static Story from(Class<?> userStoryClass)
public static Story withId(String storyId,
String storyName)
public static Story called(String storyName)
public static Story withId(String storyId,
String storyName,
String featureClassName,
String featureName)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||