Class InvalidTestClassError

All Implemented Interfaces:
Serializable

public class InvalidTestClassError extends InitializationError
Thrown by Runners in case the class under test is not valid.

Its message conveniently lists all of the validation errors.

Since:
4.13
See Also:
  • Constructor Details

    • InvalidTestClassError

      public InvalidTestClassError(Class<?> offendingTestClass, List<Throwable> validationErrors)
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
      Returns:
      a message with a list of all of the validation errors