Package org.junit.validator
Class PublicClassValidator
java.lang.Object
org.junit.validator.PublicClassValidator
- All Implemented Interfaces:
TestClassValidator
Validates that a
TestClass is public.- Since:
- 4.12
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidateTestClass(TestClass testClass) Validate that the specifiedTestClassis public.
-
Field Details
-
NO_VALIDATION_ERRORS
-
-
Constructor Details
-
PublicClassValidator
public PublicClassValidator()
-
-
Method Details
-
validateTestClass
Validate that the specifiedTestClassis public.- Specified by:
validateTestClassin interfaceTestClassValidator- Parameters:
testClass- theTestClassthat is validated.- Returns:
- an empty list if the class is public or a list with a single exception otherwise.
-