Polish
See gh-35185
This commit is contained in:
committed by
Moritz Halbritter
parent
394fb6424c
commit
ff9fd1abeb
@@ -29,6 +29,7 @@ import org.junit.jupiter.api.extension.ExtendWith;
|
||||
* Disables test execution if a process is unavailable.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @since 3.1.0
|
||||
*/
|
||||
@Target({ ElementType.TYPE, ElementType.METHOD })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
||||
@@ -57,8 +57,8 @@ class DisabledIfProcessUnavailableCondition implements ExecutionCondition {
|
||||
}
|
||||
}
|
||||
|
||||
private Stream<String[]> getAnnotationValue(AnnotatedElement testClass) {
|
||||
return MergedAnnotations.from(testClass, SearchStrategy.TYPE_HIERARCHY)
|
||||
private Stream<String[]> getAnnotationValue(AnnotatedElement testElement) {
|
||||
return MergedAnnotations.from(testElement, SearchStrategy.TYPE_HIERARCHY)
|
||||
.stream(DisabledIfProcessUnavailable.class)
|
||||
.map((annotation) -> annotation.getStringArray(MergedAnnotation.VALUE));
|
||||
}
|
||||
|
||||
@@ -25,9 +25,10 @@ import java.lang.annotation.Target;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
|
||||
/**
|
||||
* Repeatable container for {@link DisabledIfProcessUnavailables}.
|
||||
* Repeatable container for {@link DisabledIfProcessUnavailable}.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @since 3.1.0
|
||||
*/
|
||||
@Target({ ElementType.TYPE, ElementType.METHOD })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
||||
Reference in New Issue
Block a user