public class RequirementCoverage extends Object
RequirementHandler.calculateTestCoverage(String)| Constructor and Description |
|---|
RequirementCoverage() |
RequirementCoverage(RequirementKind kind,
String id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getFeatureCount()
Returns the number of feature files assigned to this requirement.
|
String |
getId()
Identifier of the requirement.
|
RequirementKind |
getKind()
Returns the type of the requirement.
|
int |
getPercentage()
Returns the coverage value, in percents.
|
int |
getScenarioCount()
Returns the number of scenarios assigned to this requirement.
|
int |
hashCode() |
void |
incFeatureCount(int plus)
Increases the number of feature files assigned to this requirement.
|
void |
incScenarioCount(int plus)
Increases the number of scenarios assigned to this requirement.
|
void |
setFeatureCount(int featureCount)
Sets the number of feature files assigned to this requirement.
|
void |
setId(String id)
Sets the identifier of the requirement.
|
void |
setKind(RequirementKind kind)
Sets the type of the requirement.
|
void |
setPercentage(int percentage)
Sets the coverage value, in percents.
|
void |
setScenarioCount(int scenarioCount)
Sets the number of scenarios assigned to this requirement.
|
public RequirementCoverage()
public RequirementCoverage(RequirementKind kind, String id)
public RequirementKind getKind()
public void setKind(RequirementKind kind)
kind - type of the requirementpublic String getId()
public void setId(String id)
id - ID of requirementpublic int getFeatureCount()
public void setFeatureCount(int featureCount)
featureCount - number of feature filespublic void incFeatureCount(int plus)
plus - this number will be added to the number of feature filespublic int getScenarioCount()
public void setScenarioCount(int scenarioCount)
scenarioCount - number of scenariospublic void incScenarioCount(int plus)
plus - this number will be added to the number of scenariospublic int getPercentage()
public void setPercentage(int percentage)
percentage - the coverage valueCreated by Kornél Simon, 2022