Class InvalidTestClassError

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidTestClassError​(java.lang.Class<?> offendingTestClass, java.util.List<java.lang.Throwable> validationErrors)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvalidTestClassError

        public InvalidTestClassError​(java.lang.Class<?> offendingTestClass,
                                     java.util.List<java.lang.Throwable> validationErrors)
    • Method Detail

      • getMessage

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