Class Requirement
java.lang.Object
net.thucydides.core.requirements.model.Requirement
- All Implemented Interfaces:
Comparable
A requirement represents a high-level business goal that will appear in the result summary report.
This report summarizes the state of the application in terms of what /** have been implemented.
Capabilities are implemented via features, which in turn are tested by scenarios.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRequirement(String name, String id, String displayName, String cardNumber, String parent, String type, String path, CustomFieldValue narrative, List<Requirement> children, List<Example> examples, List<String> releaseVersions, List<CustomFieldValue> customFields) protectedRequirement(String name, String id, String displayName, String cardNumber, String parent, String type, String path, CustomFieldValue narrative, List<Requirement> children, List<Example> examples, List<String> releaseVersions, List<CustomFieldValue> customFields, String featureFileName) protectedRequirement(String name, String id, String displayName, String cardNumber, String parent, String type, String path, CustomFieldValue narrative, List<Requirement> children, List<Example> examples, List<String> releaseVersions, List<CustomFieldValue> customFields, String featureFileName, List<TestTag> tags, Map<String, Collection<TestTag>> scenarioTags, boolean containsNoScenarios, FeatureBackgroundNarrative background) protectedRequirement(String name, String id, String displayName, String cardNumber, String parent, String type, CustomFieldValue narrative) protectedRequirement(String name, String id, String displayName, String cardNumber, String parent, String type, CustomFieldValue narrative, List<Requirement> children, List<Example> examples, List<String> releaseVersions) -
Method Summary
Modifier and TypeMethodDescriptionasTag()intbooleandefinedInFile(File featureFile) booleanintgetCustomField(String fieldName) intgetId()getName()getOrder()getPath()getTags()getType()booleanhasChild(Requirement child) booleaninthashCode()booleanbooleanmatches(Requirement that) booleanmatchesTag(TestTag testTag) merge(Requirement newRequirement) static RequirementBuilderNameStepvoidsetChildren(List<Requirement> children) stream()tagsOfType(List<String> tagTypes) toString()withBackground(FeatureBackgroundNarrative background) withChild(Requirement child) withChildren(List<Requirement> children) withCustomField(String fieldName) withCustomFields(List<CustomFieldValue> customFields) withDisplayName(String displayName) withExample(Example example) withExamples(List<Example> examples) withFeatureFileyName(String featureFileName) withNarrative(String narrativeText) withParent(String parent) withReleaseVersions(List<String> releaseVersions) withScenarioTags(Map<String, Collection<TestTag>> scenarioTags)
-
Constructor Details
-
Requirement
public Requirement() -
Requirement
-
Requirement
-
Requirement
-
Requirement
protected Requirement(String name, String id, String displayName, String cardNumber, String parent, String type, String path, CustomFieldValue narrative, List<Requirement> children, List<Example> examples, List<String> releaseVersions, List<CustomFieldValue> customFields, String featureFileName, List<TestTag> tags, Map<String, Collection<TestTag>> scenarioTags, boolean containsNoScenarios, FeatureBackgroundNarrative background) -
Requirement
-
-
Method Details
-
withNoScenarios
-
getName
-
getId
-
getDisplayName
-
getType
-
childType
-
getNarrative
-
getReleaseVersions
-
getChildrenCount
public int getChildrenCount() -
getParent
-
getChildren
-
getChildrenAsStream
-
hasChild
-
getExamples
-
hasExamples
-
getExampleCount
public int getExampleCount() -
getCardNumber
-
compareTo
- Specified by:
compareToin interfaceComparable
-
named
-
definedInFile
-
withChildren
-
setChildren
-
withParent
-
withType
-
withDisplayName
-
withFeatureFileyName
-
withExample
-
withExamples
-
withReleaseVersions
-
withCustomFields
-
withPath
-
hasChildren
public boolean hasChildren() -
getNestedChildren
-
getTags
-
getScenarioTags
-
asTag
-
asUnqualifiedTag
-
equals
-
matches
-
hashCode
public int hashCode() -
toString
-
withChild
-
withCustomField
-
getCustomFieldValues
-
getCustomField
-
getCustomFields
-
getFeatureFileName
-
qualifiedName
-
qualifier
-
matchesTag
-
merge
-
withNarrative
-
getPath
-
withTags
-
withScenarioTags
-
hasTag
-
containsNoScenarios
public boolean containsNoScenarios() -
withBackground
-
getBackground
-
getOrder
-
stream
-
tagsOfType
-