Package randoop.main
Class ExceptionBehaviorClassifier
- java.lang.Object
-
- randoop.main.ExceptionBehaviorClassifier
-
public class ExceptionBehaviorClassifier extends Object
Static methodclassify(randoop.ExceptionalExecution, randoop.sequence.ExecutableSequence)
classifies exceptions thrown by a test sequence based on theGenInputsAbstract.BehaviorType
command-line arguments.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ExceptionBehaviorClassifier()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GenInputsAbstract.BehaviorType
classify(Throwable t, ExecutableSequence eseq)
Classifies aThrowable
thrown by theExecutableSequence
using the command-line argumentsGenInputsAbstract.checked_exception
,GenInputsAbstract.unchecked_exception
,GenInputsAbstract.cm_exception
,GenInputsAbstract.ncdf_exception
,GenInputsAbstract.npe_on_null_input
,GenInputsAbstract.oom_exception
, andGenInputsAbstract.sof_exception
.static GenInputsAbstract.BehaviorType
classify(ExceptionalExecution exec, ExecutableSequence eseq)
Delegates toclassify(Throwable, ExecutableSequence)
.
-
-
-
Method Detail
-
classify
public static GenInputsAbstract.BehaviorType classify(ExceptionalExecution exec, ExecutableSequence eseq)
Delegates toclassify(Throwable, ExecutableSequence)
.- Parameters:
exec
- the ExceptionalExecution to classifyeseq
- theExecutableSequence
that threw exception- Returns:
BehaviorType
determined by command-line arguments
-
classify
public static GenInputsAbstract.BehaviorType classify(Throwable t, ExecutableSequence eseq)
Classifies aThrowable
thrown by theExecutableSequence
using the command-line argumentsGenInputsAbstract.checked_exception
,GenInputsAbstract.unchecked_exception
,GenInputsAbstract.cm_exception
,GenInputsAbstract.ncdf_exception
,GenInputsAbstract.npe_on_null_input
,GenInputsAbstract.oom_exception
, andGenInputsAbstract.sof_exception
.- Parameters:
t
- theThrowable
to classifyeseq
- theExecutableSequence
that threw exception- Returns:
BehaviorType
determined by command-line arguments
-
-