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

java.lang.Objectnet.thucydides.core.model.features.ApplicationFeature
public class ApplicationFeature
A feature represents a higher-level functionality that is illustrated by several user stories. This class is used to represent a feature in the test outcomes and reports. This class refers to an underlying class, the featureClass, which refers to the class used by the API user to define the feature and the nested user stories, e.g.
Constructor Summary
protected
ApplicationFeature(Class<?> featureClass)
ApplicationFeature(String featureId,
String featureName)
Method Summary
boolean
equals(Object o)
static ApplicationFeature
from(Class<?> featureClass)
Obtain an application feature instance from a given feature class.
Class<?>
getFeatureClass()
The underlying feature class that represents this feature.
protected String
getFeatureName()
Each feature has a descriptive name.
String
getId()
String
getName()
int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
ApplicationFeature
public ApplicationFeature(String featureId,
String featureName)
ApplicationFeature
protected ApplicationFeature(Class<?> featureClass)
Method Detail
getName
public String getName()
getFeatureClass
public Class<?> getFeatureClass()
- The underlying feature class that represents this feature.
This is used to record the original feature class in the reports and XML results files.
from
public static ApplicationFeature from(Class<?> featureClass)
- Obtain an application feature instance from a given feature class.
Feature instances are used for recording and reporting test results.
getFeatureName
protected String getFeatureName()
- Each feature has a descriptive name.
This name is usually a human-readable version of the class name, or the name provided in the ApplicationFeature annotation.
getId
public String getId()
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.