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
public class InvalidTestClassError extends InitializationError
Thrown byRunner
s 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(Class<?> offendingTestClass, List<Throwable> validationErrors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
-
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
-
-