Package randoop

Class ExceptionalExecution


  • public class ExceptionalExecution
    extends ExecutionOutcome
    Means that the execution of a statement threw an exception.
    • Field Detail

      • exception

        private final Throwable exception
    • Constructor Detail

      • ExceptionalExecution

        public ExceptionalExecution​(Throwable exception,
                                    long executionTimeNanos)
        Parameters:
        exception - the exception that was thrown
        executionTimeNanos - the execution time, in nanoseconds
    • Method Detail

      • getException

        public Throwable getException()
        Return the exception.
        Returns:
        the exception
      • toString

        public String toString()
        Warning: this method calls toString() of code under test, which may have arbitrary behavior. We use this method in randoop.test.SequenceTests.
        Overrides:
        toString in class Object