Package de.hsh.graja.regression.report
Class RegressionTestResult
java.lang.Object
de.hsh.graja.regression.report.RegressionTestResult
- All Implemented Interfaces:
Attachable
-
Method Summary
Modifier and TypeMethodDescriptionvoidattach(Attachment attachment) static RegressionTestResultofGradingFailure(String sampleSolution, PresenceReciprocity failure, Duration duration, RegressionTestingRecordedBehaviorTO expected) static RegressionTestResultofMultiSampleSuccess(String sampleSolution, Boolean isTimeout, Duration duration, List<RegressionTestingRecordedBehaviorTO> expected) static RegressionTestResultofRecorded(String sampleSolution, List<RegressionLocationContext> regressions, Status status, boolean isError, Boolean isTimeout, Duration duration, List<RegressionTestingRecordedBehaviorTO> recorded) static RegressionTestResultofTested(String sampleSolution, PresenceReciprocity timeout, List<RegressionLocationContext> regressions, int violationCount, Duration duration, RegressionTestingRecordedBehaviorTO expected) static RegressionTestResultofUnequalMaxScore(String sampleSolution, Duration duration, RegressionTestingRecordedBehaviorTO expected)
-
Method Details
-
getSampleSolution
-
getRegressions
-
getStatus
-
getGradingFailure
-
getTimeout
- Returns:
- can be null, if unknown
-
getViolationCount
-
getDuration
-
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
- Specified by:
attachin interfaceAttachable
-
allAttachments
- Specified by:
allAttachmentsin interfaceAttachable
-