net.thucydides.core.requirements
Interface RequirementsTagProvider
- All Superinterfaces:
- TagProvider
- All Known Implementing Classes:
- AnnotationBasedTagProvider, FileSystemRequirementsTagProvider
public interface RequirementsTagProvider
- extends TagProvider
A requirements provider returns the set of application requirements in a tree structure.
Requirements are mapped to test outcomes using tags: a test outcome satisfying a given requirement needs to
be tagged with the name of this requirement. So an implementation of this interface needs to do two things:
return a list of top-level requirements (usually with nested child requirements, e.g. capabilities and features),
and provide a way to determine what requirement tags need to be associated with each test outcome.
The requirements provider implementation also needs to be listed in the corresponding META-INF/services file.
getRequirements
List<Requirement> getRequirements()
getParentRequirementOf
com.google.common.base.Optional<Requirement> getParentRequirementOf(TestOutcome testOutcome)
getRequirementFor
com.google.common.base.Optional<Requirement> getRequirementFor(TestTag testTag)
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.