Class UnitTestActivity
- java.lang.Object
-
- io.jenkins.plugins.devopsportal.models.AbstractActivity
-
- io.jenkins.plugins.devopsportal.models.UnitTestActivity
-
- All Implemented Interfaces:
Serializable
public class UnitTestActivity extends AbstractActivity
A persistent record of a UNIT_TEST activity.- Author:
- RĂ©mi BELLO <remi@evolya.fr>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnitTestActivity(String applicationComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTestsFailed(int value)
void
addTestsIgnored(int value)
void
addTestsPassed(int value)
float
getTestCoverage()
int
getTestsFailed()
int
getTestsIgnored()
int
getTestsPassed()
boolean
isQualityGatePassed()
void
resetCounters()
void
setTestCoverage(float testCoverage)
void
setTestsFailed(int testsFailed)
void
setTestsIgnored(int testsIgnored)
void
setTestsPassed(int testsPassed)
void
updateScore()
-
Methods inherited from class io.jenkins.plugins.devopsportal.models.AbstractActivity
getApplicationComponent, getCategory, getScore, getTimestamp, getUUID, setScore
-
-
-
-
Constructor Detail
-
UnitTestActivity
@DataBoundConstructor public UnitTestActivity(String applicationComponent)
-
-
Method Detail
-
getTestCoverage
public float getTestCoverage()
-
setTestCoverage
@DataBoundSetter public void setTestCoverage(float testCoverage)
-
getTestsPassed
public int getTestsPassed()
-
setTestsPassed
@DataBoundSetter public void setTestsPassed(int testsPassed)
-
getTestsFailed
public int getTestsFailed()
-
setTestsFailed
@DataBoundSetter public void setTestsFailed(int testsFailed)
-
getTestsIgnored
public int getTestsIgnored()
-
setTestsIgnored
@DataBoundSetter public void setTestsIgnored(int testsIgnored)
-
isQualityGatePassed
public boolean isQualityGatePassed()
-
resetCounters
public void resetCounters()
-
updateScore
public void updateScore()
-
addTestsPassed
public void addTestsPassed(int value)
-
addTestsFailed
public void addTestsFailed(int value)
-
addTestsIgnored
public void addTestsIgnored(int value)
-
-