Package org.junit.runners.model
Class InvalidTestClassError
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.junit.runners.model.InitializationError
org.junit.runners.model.InvalidTestClassError
- All Implemented Interfaces:
Serializable
Thrown by
Runner
s in case the class under test is not valid.
Its message conveniently lists all of the validation errors.
- Since:
- 4.13
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInvalidTestClassError
(Class<?> offendingTestClass, List<Throwable> validationErrors) -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
createMessage
(Class<?> testClass, List<Throwable> validationErrors) Methods inherited from class org.junit.runners.model.InitializationError
getCauses
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
message
-
-
Constructor Details
-
InvalidTestClassError
-
-
Method Details
-
createMessage
-
getMessage
- Overrides:
getMessage
in classThrowable
- Returns:
- a message with a list of all of the validation errors
-