Skip to content

Commit

Permalink
Update code base due to @API refactoring
Browse files Browse the repository at this point in the history
Issue: #436
  • Loading branch information
junit-builds committed Sep 8, 2017
1 parent 5abe3d9 commit 8d2704a
Show file tree
Hide file tree
Showing 222 changed files with 476 additions and 472 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down Expand Up @@ -62,6 +62,6 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(Stable)
@API(status = STABLE)
public @interface AfterAll {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down Expand Up @@ -58,6 +58,6 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(Stable)
@API(status = STABLE)
public @interface AfterEach {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

package org.junit.jupiter.api;

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

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

///CLOVER:OFF
Expand Down Expand Up @@ -1089,7 +1089,7 @@ public static void assertAll(String heading, Executable... executables) throws M
* @see #assertAll(String, Executable...)
* @see #assertAll(Stream)
*/
@API(Experimental)
@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 @@ -10,7 +10,7 @@

package org.junit.jupiter.api;

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

import java.util.function.BooleanSupplier;
import java.util.function.Supplier;
Expand Down Expand Up @@ -38,7 +38,7 @@
* @see TestAbortedException
* @see Assertions
*/
@API(Stable)
@API(status = STABLE)
public final class Assumptions {

///CLOVER:OFF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down Expand Up @@ -62,6 +62,6 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(Stable)
@API(status = STABLE)
public @interface BeforeAll {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down Expand Up @@ -58,6 +58,6 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(Stable)
@API(status = STABLE)
public @interface BeforeEach {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand All @@ -32,7 +32,7 @@
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(Stable)
@API(status = STABLE)
public @interface Disabled {

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

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand All @@ -34,7 +34,7 @@
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(Stable)
@API(status = STABLE)
public @interface DisplayName {

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

package org.junit.jupiter.api;

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

import java.util.stream.Stream;
import java.util.stream.StreamSupport;
Expand All @@ -29,7 +29,7 @@
*
* @since 5.0
*/
@API(Experimental)
@API(status = EXPERIMENTAL)
public class DynamicContainer extends DynamicNode {

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

package org.junit.jupiter.api;

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

import org.junit.platform.commons.meta.API;
import org.junit.platform.commons.util.Preconditions;
Expand All @@ -22,7 +22,7 @@
*
* @since 5.0
*/
@API(Experimental)
@API(status = EXPERIMENTAL)
public abstract class DynamicNode {

private final String displayName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import static java.util.Spliterator.ORDERED;
import static java.util.Spliterators.spliteratorUnknownSize;
import static org.junit.platform.commons.meta.API.Usage.Experimental;
import static org.junit.platform.commons.meta.API.Status.EXPERIMENTAL;

import java.util.Iterator;
import java.util.function.Function;
Expand Down Expand Up @@ -44,7 +44,7 @@
* @see TestFactory
* @see Executable
*/
@API(Experimental)
@API(status = EXPERIMENTAL)
public class DynamicTest extends DynamicNode {

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

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand All @@ -29,6 +29,6 @@
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(Stable)
@API(status = STABLE)
public @interface Nested {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down Expand Up @@ -53,7 +53,7 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(Stable)
@API(status = STABLE)
@TestTemplate
public @interface RepeatedTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

package org.junit.jupiter.api;

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

import org.junit.platform.commons.meta.API;

Expand All @@ -33,7 +33,7 @@
* @see RepeatedTest
* @see TestInfo
*/
@API(Stable)
@API(status = STABLE)
public interface RepetitionInfo {

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

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down Expand Up @@ -46,7 +46,7 @@
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Repeatable(Tags.class)
@API(Stable)
@API(status = STABLE)
public @interface Tag {

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

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand All @@ -34,7 +34,7 @@
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(Stable)
@API(status = STABLE)
public @interface Tags {

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

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down Expand Up @@ -47,7 +47,7 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(Stable)
@API(status = STABLE)
@Testable
public @interface Test {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down Expand Up @@ -52,7 +52,7 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(Experimental)
@API(status = EXPERIMENTAL)
@Testable
public @interface TestFactory {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

package org.junit.jupiter.api;

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

import java.lang.reflect.Method;
import java.util.Optional;
Expand All @@ -31,7 +31,7 @@
* @see Test
* @see DisplayName
*/
@API(Stable)
@API(status = STABLE)
public interface TestInfo {

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

package org.junit.jupiter.api;

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

import java.util.Collections;
import java.util.Map;
Expand All @@ -28,7 +28,7 @@
* @since 5.0
*/
@FunctionalInterface
@API(Stable)
@API(status = STABLE)
public interface TestReporter {

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

package org.junit.jupiter.api;

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down Expand Up @@ -57,7 +57,7 @@
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(Stable)
@API(status = STABLE)
@Testable
public @interface TestTemplate {
}
Loading

0 comments on commit 8d2704a

Please sign in to comment.