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 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:
- Serialized Form
InvalidTestClassError
public InvalidTestClassError(Class<?> offendingTestClass,
List<Throwable> validationErrors)
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
- Returns:
- a message with a list of all of the validation errors
Copyright © 2002–2021 JUnit. All rights reserved.