Package org.junit.runner
Class OrderWithValidator
java.lang.Object
org.junit.validator.AnnotationValidator
org.junit.runner.OrderWithValidator
Validates that there are no errors in the use of the
OrderWith
annotation. If there is, a Throwable
object will be added to the list
of errors.- Since:
- 4.13
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidateAnnotatedClass
(TestClass testClass) Adds toerrors
a throwable for each problem detected.Methods inherited from class org.junit.validator.AnnotationValidator
validateAnnotatedField, validateAnnotatedMethod
-
Constructor Details
-
OrderWithValidator
public OrderWithValidator()
-
-
Method Details
-
validateAnnotatedClass
Adds toerrors
a throwable for each problem detected. Looks forFixMethodOrder
annotations.- Overrides:
validateAnnotatedClass
in classAnnotationValidator
- Parameters:
testClass
- that is being validated- Returns:
- A list of exceptions detected
- Since:
- 4.13
-