net.thucydides.core.requirements.reports
Class RequirementOutcome
java.lang.Object
net.thucydides.core.requirements.reports.RequirementOutcome
public class RequirementOutcome
- extends Object
RequirementOutcome
public RequirementOutcome(Requirement requirement,
TestOutcomes testOutcomes,
int requirementsWithoutTests,
int estimatedUnimplementedTests,
IssueTracking issueTracking)
RequirementOutcome
public RequirementOutcome(Requirement requirement,
TestOutcomes testOutcomes,
IssueTracking issueTracking)
withTestOutcomes
public RequirementOutcome withTestOutcomes(TestOutcomes testOutcomes)
getRequirement
public Requirement getRequirement()
getTestOutcomes
public TestOutcomes getTestOutcomes()
isComplete
public boolean isComplete()
- Is this requirement complete?
A Requirement is considered complete if it has associated tests to all of the tests are successful.
isFailure
public boolean isFailure()
isPending
public boolean isPending()
getFlattenedRequirementCount
public int getFlattenedRequirementCount()
getFlattenedRequirements
public List<Requirement> getFlattenedRequirements()
getRequirementsWithoutTestsCount
public int getRequirementsWithoutTestsCount()
getCardNumberWithLinks
public String getCardNumberWithLinks()
toString
public String toString()
- Overrides:
toString in class Object
getTestCount
public int getTestCount()
getTests
public TestOutcomes getTests()
getEstimatedUnimplementedTests
public int getEstimatedUnimplementedTests()
getFormattedPercentage
public RequirementsPercentageFormatter getFormattedPercentage()
getFormattedPercentage
public RequirementsPercentageFormatter getFormattedPercentage(String testType)
getFormattedPercentage
public RequirementsPercentageFormatter getFormattedPercentage(TestType testType)
testsRequirement
public boolean testsRequirement(Requirement requirement)
getPercent
public RequirementsProportionCounter getPercent()
percentage
public RequirementsProportionCounter percentage(String testType)
percentage
public RequirementsProportionCounter percentage(TestType testType)
getTotal
public RequirementOutcome.OutcomeCounter getTotal()
count
public RequirementOutcome.OutcomeCounter count(TestType testType)
count
public RequirementOutcome.OutcomeCounter count(String testType)
getReleaseVersions
public Set<String> getReleaseVersions()
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.