Package org.junit.runner
Class OrderWithValidator
- java.lang.Object
-
- org.junit.validator.AnnotationValidator
-
- org.junit.runner.OrderWithValidator
-
public final class OrderWithValidator extends AnnotationValidator
Validates that there are no errors in the use of theOrderWith
annotation. If there is, aThrowable
object will be added to the list of errors.- Since:
- 4.13
-
-
Constructor Summary
Constructors Constructor Description OrderWithValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Exception>
validateAnnotatedClass(TestClass testClass)
Adds toerrors
a throwable for each problem detected.-
Methods inherited from class org.junit.validator.AnnotationValidator
validateAnnotatedField, validateAnnotatedMethod
-
-
-
-
Constructor Detail
-
OrderWithValidator
public OrderWithValidator()
-
-
Method Detail
-
validateAnnotatedClass
public java.util.List<java.lang.Exception> validateAnnotatedClass(TestClass testClass)
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
-
-