Class Mutation
- java.lang.Object
-
- com.parasoft.findings.jenkins.coverage.model.Mutation
-
- All Implemented Interfaces:
Serializable
public final class Mutation extends Object implements Serializable
Class which represents a mutation of the PIT Mutation Testing tool.- Author:
- Melissa Bauer
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Mutation.MutationBuilder
Builder to create newMutation
instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getDescription()
String
getKillingTest()
int
getLine()
String
getMethod()
String
getMutatedClass()
String
getMutator()
String
getSignature()
MutationStatus
getStatus()
int
hashCode()
boolean
hasSurvived()
Returns if the mutation has survived.boolean
isCovered()
boolean
isDetected()
boolean
isKilled()
Returns if the mutation was killed.boolean
isMissed()
boolean
isValid()
String
toString()
-
-
-
Method Detail
-
getMutatedClass
public String getMutatedClass()
-
getMethod
public String getMethod()
-
getSignature
public String getSignature()
-
getDescription
public String getDescription()
-
isDetected
public boolean isDetected()
-
getStatus
public MutationStatus getStatus()
-
isValid
public boolean isValid()
-
isCovered
public boolean isCovered()
-
isMissed
public boolean isMissed()
-
getLine
public int getLine()
-
getMutator
public String getMutator()
-
getKillingTest
public String getKillingTest()
-
isKilled
public boolean isKilled()
Returns if the mutation was killed.- Returns:
- if the mutation was killed
-
hasSurvived
public boolean hasSurvived()
Returns if the mutation has survived.- Returns:
- if the mutation has survived
-
-