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:
java.io.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(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 org.junit.runners.model.InitializationError
getCauses
-
-
-
-
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 classjava.lang.Throwable
- Returns:
- a message with a list of all of the validation errors
-
-