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 a TestClass
is public.
- Since:
- 4.12
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PublicClassValidator
public PublicClassValidator()
validateTestClass
public List<Exception> validateTestClass(TestClass testClass)
- Validate that the specified
TestClass
is public.
- Specified by:
validateTestClass
in interface TestClassValidator
- Parameters:
testClass
- the TestClass
that is validated.
- Returns:
- an empty list if the class is public or a list with a single
exception otherwise.
Copyright © 2002–2020 JUnit. All rights reserved.