Package randoop.test

Class InvalidExceptionCheck

java.lang.Object
randoop.test.ExceptionCheck
randoop.test.InvalidExceptionCheck
All Implemented Interfaces:
Check

public class InvalidExceptionCheck extends ExceptionCheck
An InvalidExceptionCheck represents the occurrence of an exception tagged as an invalid behavior during Check generation.
  • Constructor Details

    • InvalidExceptionCheck

      public InvalidExceptionCheck(Throwable exception, int statementIndex, String catchClassName)
  • Method Details

    • appendCatchBehavior

      protected void appendCatchBehavior(StringBuilder b)
      Description copied from class: ExceptionCheck
      Appends code for catch block behavior corresponding to expected exception.
      Specified by:
      appendCatchBehavior in class ExceptionCheck
      Parameters:
      b - the string builder to which code text is to be added
    • appendTryBehavior

      protected void appendTryBehavior(StringBuilder b)
      Description copied from class: ExceptionCheck
      Appends code to follow the statement throwing expected exception in try block.
      Specified by:
      appendTryBehavior in class ExceptionCheck
      Parameters:
      b - the string builder to which code text is added