Skip to content

Commit

Permalink
Populate since attribute in @API declarations
Browse files Browse the repository at this point in the history
Issue: #436
  • Loading branch information
junit-builds committed Sep 8, 2017
1 parent 475e7fa commit a1a607b
Show file tree
Hide file tree
Showing 220 changed files with 232 additions and 230 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public @interface AfterAll {
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public @interface AfterEach {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

package org.junit.jupiter.api;

import static org.junit.platform.commons.meta.API.Status.EXPERIMENTAL;
import static org.junit.platform.commons.meta.API.Status.STABLE;

import java.time.Duration;
Expand All @@ -37,7 +36,7 @@
* @see org.opentest4j.AssertionFailedError
* @see Assumptions
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public final class Assertions {

///CLOVER:OFF
Expand Down Expand Up @@ -1089,7 +1088,6 @@ public static void assertAll(String heading, Executable... executables) throws M
* @see #assertAll(String, Executable...)
* @see #assertAll(Stream)
*/
@API(status = EXPERIMENTAL)
public static void assertAll(String heading, Stream<Executable> executables) throws MultipleFailuresError {
AssertAll.assertAll(heading, executables);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @see TestAbortedException
* @see Assertions
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public final class Assumptions {

///CLOVER:OFF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public @interface BeforeAll {
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public @interface BeforeEach {
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public @interface Disabled {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public @interface DisplayName {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*
* @since 5.0
*/
@API(status = EXPERIMENTAL)
@API(status = EXPERIMENTAL, since = "5.0")
public class DynamicContainer extends DynamicNode {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*
* @since 5.0
*/
@API(status = EXPERIMENTAL)
@API(status = EXPERIMENTAL, since = "5.0")
public abstract class DynamicNode {

private final String displayName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* @see TestFactory
* @see Executable
*/
@API(status = EXPERIMENTAL)
@API(status = EXPERIMENTAL, since = "5.0")
public class DynamicTest extends DynamicNode {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public @interface Nested {
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
@TestTemplate
public @interface RepeatedTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @see RepeatedTest
* @see TestInfo
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface RepetitionInfo {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Repeatable(Tags.class)
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public @interface Tag {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public @interface Tags {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
@Testable
public @interface Test {
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = EXPERIMENTAL)
@API(status = EXPERIMENTAL, since = "5.0")
@Testable
public @interface TestFactory {
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @see Test
* @see DisplayName
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface TestInfo {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@

package org.junit.jupiter.api;

import static org.junit.platform.commons.meta.API.Status.STABLE;

import java.lang.annotation.Documented;
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.junit.platform.commons.meta.API;

/**
* {@code @TestInstance} is a type-level annotation that is used to configure
* the {@linkplain Lifecycle lifecycle} of test instances for the annotated
Expand Down Expand Up @@ -57,6 +61,7 @@
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@API(status = STABLE, since = "5.0")
public @interface TestInstance {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* @since 5.0
*/
@FunctionalInterface
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface TestReporter {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
@Testable
public @interface TestTemplate {
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @see AfterTestExecutionCallback
*/
@FunctionalInterface
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface AfterAllCallback extends Extension {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @see AfterAllCallback
*/
@FunctionalInterface
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface AfterEachCallback extends Extension {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @see AfterAllCallback
*/
@FunctionalInterface
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface AfterTestExecutionCallback extends Extension {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @see AfterTestExecutionCallback
*/
@FunctionalInterface
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface BeforeAllCallback extends Extension {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @see AfterAllCallback
*/
@FunctionalInterface
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface BeforeEachCallback extends Extension {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @see AfterAllCallback
*/
@FunctionalInterface
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface BeforeTestExecutionCallback extends Extension {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*
* @since 5.0
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public class ConditionEvaluationResult {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* @see org.junit.jupiter.api.Disabled
*/
@FunctionalInterface
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface ExecutionCondition extends Extension {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
@Documented
@Inherited
@Repeatable(Extensions.class)
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public @interface ExtendWith {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
*
* @since 5.0
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface Extension {
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @since 5.0
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public class ExtensionConfigurationException extends JUnitException {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @see Store
* @see Namespace
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface ExtensionContext {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*
* @since 5.0
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public class ExtensionContextException extends JUnitException {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public @interface Extensions {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @see java.lang.reflect.Method
* @see java.lang.reflect.Constructor
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface ParameterContext {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @since 5.0
* @see ParameterResolver
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public class ParameterResolutionException extends JUnitException {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @see #resolveParameter(ParameterContext, ExtensionContext)
* @see ParameterContext
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface ParameterResolver extends Extension {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @since 5.0
*/
@FunctionalInterface
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface TestExecutionExceptionHandler extends Extension {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @since 5.0
* @see #postProcessTestInstance(Object, ExtensionContext)
*/
@API(status = STABLE)
@API(status = STABLE, since = "5.0")
public interface TestInstancePostProcessor extends Extension {

/**
Expand Down
Loading

0 comments on commit a1a607b

Please sign in to comment.