See gh-35185
This commit is contained in:
Johnny Lim
2023-04-28 01:02:02 +09:00
committed by Moritz Halbritter
parent 394fb6424c
commit ff9fd1abeb
12 changed files with 21 additions and 21 deletions

View File

@@ -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)

View File

@@ -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));
}

View File

@@ -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)