public class TestOutcomeRequirementsTagProvider extends Object implements RequirementsTagProvider, OverridableTagProvider, RequirementTypesProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_TARGET_DIR |
static String |
JAVASCRIPT_FORMAT |
static String |
JUNIT4_FORMAT |
static String |
JUNIT5_FORMAT |
| Constructor and Description |
|---|
TestOutcomeRequirementsTagProvider()
Default constructor.
|
TestOutcomeRequirementsTagProvider(EnvironmentVariables environmentVariables)
Constructor with EnvironmentVariables parameter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequirementTagsTo(TestOutcome outcome)
Adds requirement tags to the given TestOutcome.
|
List<String> |
getActiveRequirementTypes()
Get active requirement types based on the depth of each requirement.
|
List<Requirement> |
getFlattenedRequirements() |
Optional<Requirement> |
getParentRequirementOf(Requirement requirement) |
Optional<Requirement> |
getParentRequirementOf(TestOutcome testOutcome)
Fetches the parent requirement of a given TestOutcome.
|
Optional<Requirement> |
getRequirementFor(TestTag testTag) |
List<Requirement> |
getRequirements()
Get the requirements from the RequirementCache or load them if not present in the cache.
|
Set<TestTag> |
getTagsFor(TestOutcome testOutcome)
Returns the tags associated with a given test outcome.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOverviewpublic static final String JUNIT5_FORMAT
public static final String JUNIT4_FORMAT
public static final String JAVASCRIPT_FORMAT
public static final String DEFAULT_TARGET_DIR
public TestOutcomeRequirementsTagProvider()
public TestOutcomeRequirementsTagProvider(EnvironmentVariables environmentVariables)
environmentVariables - The EnvironmentVariables to be used for the TestOutcomeRequirementsTagProvider.public List<String> getActiveRequirementTypes()
getActiveRequirementTypes in interface RequirementTypesProviderpublic List<Requirement> getRequirements()
getRequirements in interface RequirementsTagProviderpublic void addRequirementTagsTo(TestOutcome outcome)
addRequirementTagsTo in interface RequirementsTagProvideroutcome - The TestOutcome to which the requirement tags are to be added.public Optional<Requirement> getParentRequirementOf(TestOutcome testOutcome)
getParentRequirementOf in interface RequirementsTagProvidertestOutcome - The TestOutcome whose parent requirement is to be fetched.public Optional<Requirement> getParentRequirementOf(Requirement requirement)
getParentRequirementOf in interface RequirementsTagProviderpublic Optional<Requirement> getRequirementFor(TestTag testTag)
getRequirementFor in interface RequirementsTagProviderpublic Set<TestTag> getTagsFor(TestOutcome testOutcome)
TagProvidergetTagsFor in interface TagProvidertestOutcome - the outcome for a specific testpublic List<Requirement> getFlattenedRequirements()
Copyright © 2023. All rights reserved.