blob: e8470c9dd1c8a924dbeddb0b1a8dc1db9a918c68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package org.junit.runner;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.junit.runner.manipulation.Ordering;
import org.junit.validator.ValidateWith;
/**
* When a test class is annotated with <code>@OrderWith</code> or extends a class annotated
* with <code>@OrderWith</code>, JUnit will order the tests in the test class (and child
* test classes, if any) using the ordering defined by the {@link Ordering} class.
*
* @since 4.13
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
@ValidateWith(OrderWithValidator.class)
public @interface OrderWith {
/**
* Gets a class that extends {@link Ordering}. The class must have a public no-arg constructor.
*/
Class<? extends Ordering.Factory> value();
}
|