Package org.junit.validator
Class PublicClassValidator
- java.lang.Object
-
- org.junit.validator.PublicClassValidator
-
- All Implemented Interfaces:
TestClassValidator
public class PublicClassValidator extends Object implements TestClassValidator
Validates that aTestClassis public.- Since:
- 4.12
-
-
Constructor Summary
Constructors Constructor Description PublicClassValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Exception>validateTestClass(TestClass testClass)Validate that the specifiedTestClassis public.
-
-
-
Constructor Detail
-
PublicClassValidator
public PublicClassValidator()
-
-
Method Detail
-
validateTestClass
public List<Exception> validateTestClass(TestClass testClass)
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.
-
-