Package edu.berkeley.cs.jqf.fuzz.junit
Class Junit4ResultClassifier
java.lang.Object
edu.berkeley.cs.jqf.fuzz.junit.Junit4ResultClassifier
- All Implemented Interfaces:
ResultClassifier
Classifies trial throwables for the JUnit 4 run path.
JUnit 4 signals an unmet assumption with
AssumptionViolatedException, raised by org.junit.Assume.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReports whether the throwable signals an unmet assumption.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.berkeley.cs.jqf.fuzz.spi.ResultClassifier
isTimeout
-
Constructor Details
-
Junit4ResultClassifier
public Junit4ResultClassifier()
-
-
Method Details
-
isAssumptionViolation
Description copied from interface:ResultClassifierReports whether the throwable signals an unmet assumption.An unmet assumption means the generated input did not satisfy the test's preconditions, so the engine discards it as invalid rather than recording a failure.
- Specified by:
isAssumptionViolationin interfaceResultClassifier- Parameters:
t- a throwable raised by a trial- Returns:
trueif the input should be treated as invalid
-