|
22 | 22 | import org.junit.jupiter.api.extension.ExtendWith;
|
23 | 23 |
|
24 | 24 | /**
|
25 |
| - * {@code @DisabledIf} is used to signal that the annotated test class or |
26 |
| - * test method is <em>disabled</em> only if the provided condition |
27 |
| - * evaluates to {@code true}. |
| 25 | + * {@code @DisabledIf} is used to signal that the annotated test class or test |
| 26 | + * method is <em>disabled</em> only if the provided |
| 27 | + * {@linkplain #value() condition} evaluates to {@code true}. |
28 | 28 | *
|
29 |
| - * <p>When applied at the class level, all test methods within that class |
30 |
| - * will be disabled on the same condition. |
| 29 | + * <p>When applied at the class level, all test methods within that class will |
| 30 | + * be disabled on the same condition. |
31 | 31 | *
|
32 | 32 | * <p>If a test method is disabled via this annotation, that does not prevent
|
33 | 33 | * the test class from being instantiated. Rather, it prevents the execution of
|
|
71 | 71 | public @interface DisabledIf {
|
72 | 72 |
|
73 | 73 | /**
|
74 |
| - * The name of a method within the test class or in external classes |
75 |
| - * to use as a condition for the container's execution. |
| 74 | + * The name of a method within the test class or in an external class to use |
| 75 | + * as a condition for the test's or container's execution. |
76 | 76 | *
|
77 |
| - * <p>Condition methods must be static if located outside the test class, |
78 |
| - * or if {@code @DisabledIf} is used at class level. |
| 77 | + * <p>Condition methods must be static if located outside the test class or |
| 78 | + * if {@code @DisabledIf} is used at the class level. |
79 | 79 | *
|
80 |
| - * <p>Condition methods in external classes must be referenced by <em>fully |
81 |
| - * qualified method name</em> — for example, |
| 80 | + * <p>A condition method in an external class must be referenced by its |
| 81 | + * <em>fully qualified method name</em> — for example, |
82 | 82 | * {@code com.example.Conditions#isEncryptionSupported}.
|
83 | 83 | */
|
84 | 84 | String value();
|
|
0 commit comments