net.thucydides.core.requirements
Interface RequirementsTagProvider

Package class diagram package 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.


Method Summary
 com.google.common.base.Optional<Requirement> getParentRequirementOf(TestOutcome testOutcome)
           
 com.google.common.base.Optional<Requirement> getRequirementFor(TestTag testTag)
           
 List<Requirement> getRequirements()
           
 
Methods inherited from interface net.thucydides.core.statistics.service.TagProvider
getTagsFor
 

Method Detail

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.