net.thucydides.core.model.features
Class ApplicationFeature

Package class diagram package ApplicationFeature
java.lang.Object
  extended by net.thucydides.core.model.features.ApplicationFeature

public class ApplicationFeature
extends Object

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


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.