diff --git a/spring-test/src/main/java/org/springframework/test/annotation/IfProfileValue.java b/spring-test/src/main/java/org/springframework/test/annotation/IfProfileValue.java index 04b8a1b8e0..97ca1298cd 100644 --- a/spring-test/src/main/java/org/springframework/test/annotation/IfProfileValue.java +++ b/spring-test/src/main/java/org/springframework/test/annotation/IfProfileValue.java @@ -27,21 +27,22 @@ import java.lang.annotation.Target; *
* Test annotation to indicate that a test is enabled for a specific testing * profile or environment. If the configured {@link ProfileValueSource} returns - * a matching {@link #value() value} for the provided {@link #name() name}, the - * test will be enabled. + * a matching {@link #value} for the provided {@link #name}, the test will be + * enabled. *
*- * Note: {@code @IfProfileValue} can be applied at the class level, - * the method level, or both. {@code @IfProfileValue} at the class - * level overrides method-level usage of {@code @IfProfileValue} for - * any methods within that class. - *
- *- * Examples: when using {@link SystemProfileValueSource} as the - * {@link ProfileValueSource} implementation, you can configure a test method to - * run only on Java VMs from Sun Microsystems as follows: + * Note: {@code @IfProfileValue} can be applied at the class level, the method + * level, or both. {@code @IfProfileValue} at the class level overrides + * method-level usage of {@code @IfProfileValue} for any methods within that + * class. *
* + *+ * When using {@link SystemProfileValueSource} as the {@link ProfileValueSource} + * implementation, you can configure a test method to run only on Java VMs from + * Sun Microsystems as follows: + *
*
* @IfProfileValue(name = "java.vendor", value = "Sun Microsystems Inc.")
* public void testSomething() {
@@ -49,10 +50,10 @@ import java.lang.annotation.Target;
* }
*
* - * You can alternatively configure {@code @IfProfileValue} with - * OR semantics for multiple {@link #values() values} as follows - * (assuming a {@link ProfileValueSource} has been appropriately configured for - * the "test-groups" name): + * You can alternatively configure {@code @IfProfileValue} with OR + * semantics for multiple {@link #values() values} as follows (assuming a + * {@link ProfileValueSource} has been appropriately configured for the + * "test-groups" name): *
* *