diff --git a/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ExclusiveResources.java b/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ExclusiveResources.java index c35e19a6bf6f..f9f341685ef3 100644 --- a/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ExclusiveResources.java +++ b/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ExclusiveResources.java @@ -10,12 +10,17 @@ package org.junit.jupiter.api.parallel; +import static org.apiguardian.api.API.Status.STABLE; + 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.apiguardian.api.API; + +@API(status = STABLE, since = "?") @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.TYPE, ElementType.METHOD }) @Inherited diff --git a/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ExclusiveResourcesProvider.java b/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ExclusiveResourcesProvider.java index bbb8c17a6781..c0f143a05691 100644 --- a/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ExclusiveResourcesProvider.java +++ b/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ExclusiveResourcesProvider.java @@ -10,10 +10,15 @@ package org.junit.jupiter.api.parallel; +import static org.apiguardian.api.API.Status.STABLE; + import java.lang.reflect.Method; import java.util.Collections; import java.util.Set; +import org.apiguardian.api.API; + +@API(status = STABLE, since = "?") public interface ExclusiveResourcesProvider { default Set provideForClass(Class testClass) { return Collections.emptySet(); diff --git a/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/MyExclusiveResourcesProvider.java b/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/MyExclusiveResourcesProvider.java index f3c7a01e5b30..6f32fbb77c65 100644 --- a/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/MyExclusiveResourcesProvider.java +++ b/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/MyExclusiveResourcesProvider.java @@ -11,11 +11,15 @@ package org.junit.jupiter.api.parallel; import static java.util.stream.Collectors.toSet; +import static org.apiguardian.api.API.Status.STABLE; import java.lang.reflect.Method; import java.util.Set; import java.util.stream.Stream; +import org.apiguardian.api.API; + +@API(status = STABLE, since = "?") public final class MyExclusiveResourcesProvider implements ExclusiveResourcesProvider { public MyExclusiveResourcesProvider() {