Class ApplicationFeature
java.lang.Object
net.thucydides.core.model.features.ApplicationFeature
public class ApplicationFeature
extends java.lang.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.
@Feature
public class MyFeature {
public class MyUserStory1() {}
public class MyUserStory2() {}
}
These classes are then used in the test cases and easyb stories to refer to the tested user stories, e.g.
@Test
@TestsStory(MyUserStory1.class)
public void should_do_this() {...}
-
Constructor Summary
Constructors Modifier Constructor Description protected
ApplicationFeature(java.lang.Class<?> featureClass)
ApplicationFeature(java.lang.String id, java.lang.String name)
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ApplicationFeature
public ApplicationFeature(java.lang.String id, java.lang.String name) -
ApplicationFeature
protected ApplicationFeature(java.lang.Class<?> featureClass)
-
-
Method Details
-
getName
public java.lang.String getName() -
from
Obtain an application feature instance from a given feature class. Feature instances are used for recording and reporting test results. -
getId
public java.lang.String getId() -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-