Package de.hsh.graja.regression.report
Class RegressionTestResult
- java.lang.Object
-
- de.hsh.graja.regression.report.RegressionTestResult
-
- All Implemented Interfaces:
Attachable
public class RegressionTestResult extends Object implements Attachable
-
-
Method Summary
-
-
-
Method Detail
-
getSampleSolution
public String getSampleSolution()
-
getRegressions
public List<RegressionLocationContext> getRegressions()
-
getStatus
public Status getStatus()
-
getGradingFailure
public PresenceReciprocity getGradingFailure()
-
getTimeout
public PresenceReciprocity getTimeout()
- Returns:
- can be null, if unknown
-
getViolationCount
public Integer getViolationCount()
-
getDuration
public Duration getDuration()
-
getExpectedBehavior
public List<RegressionTestingRecordedBehaviorTO> getExpectedBehavior()
-
ofRecorded
public static RegressionTestResult ofRecorded(String sampleSolution, List<RegressionLocationContext> regressions, Status status, boolean isError, Boolean isTimeout, Duration duration, List<RegressionTestingRecordedBehaviorTO> recorded)
-
ofTested
public static RegressionTestResult ofTested(String sampleSolution, PresenceReciprocity timeout, List<RegressionLocationContext> regressions, int violationCount, Duration duration, RegressionTestingRecordedBehaviorTO expected)
-
ofGradingFailure
public static RegressionTestResult ofGradingFailure(String sampleSolution, PresenceReciprocity failure, Duration duration, RegressionTestingRecordedBehaviorTO expected)
-
ofMultiSampleSuccess
public static RegressionTestResult ofMultiSampleSuccess(String sampleSolution, Boolean isTimeout, Duration duration, List<RegressionTestingRecordedBehaviorTO> expected)
-
ofUnequalMaxScore
public static RegressionTestResult ofUnequalMaxScore(String sampleSolution, Duration duration, RegressionTestingRecordedBehaviorTO expected)
-
attach
public void attach(Attachment attachment)
- Specified by:
attach
in interfaceAttachable
-
allAttachments
public List<Attachment> allAttachments()
- Specified by:
allAttachments
in interfaceAttachable
-
-