Skip to content

Commit

Permalink
Promote APIs, add specifications and update Javadoc version numbers
Browse files Browse the repository at this point in the history
Most common Ares API is STABLE now and won't change in an incompatible
way in this major version (1.0.0).
  • Loading branch information
MaisiKoleni committed Jan 17, 2022
1 parent d081f82 commit 5dce034
Show file tree
Hide file tree
Showing 62 changed files with 158 additions and 69 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/ActivateHiddenBefore.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
* @author Christian Femers
* @see Deadline
* @since 0.1.2
* @version 1.1.0
* @version 1.2.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/AddTrustedPackage.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
*
* @author Christian Femers
* @since 1.3.1
* @version 1.0.0
* @version 1.1.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/AddTrustedPackages.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* @see AddTrustedPackage
* @author Christian Femers
* @since 1.3.1
* @version 1.0.0
* @version 1.1.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/AllowLocalPort.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
*
* @author Christian Femers
* @since 0.3.6
* @version 1.0.0
* @version 1.1.0
*/
@API(status = Status.EXPERIMENTAL)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/de/tum/in/test/api/AllowThreads.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;

/**
* Allows starting and modifying own Threads.
*
* @author Christian Femers
* @since 0.4.0
* @version 1.0.0
*/
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/BlacklistPackage.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
*
* @author Christian Femers
* @since 0.5.1
* @version 1.1.0
* @version 1.2.0
*/
@API(status = Status.EXPERIMENTAL)
@API(status = Status.MAINTAINED)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/BlacklistPackages.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* @see BlacklistPackage
* @author Christian Femers
* @since 0.5.1
* @version 1.0.0
* @version 1.1.0
*/
@API(status = Status.EXPERIMENTAL)
@API(status = Status.MAINTAINED)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/BlacklistPath.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
* @see Path
* @author Christian Femers
* @since 0.2.0
* @version 1.1.0
* @version 1.2.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/BlacklistPaths.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
* @see Path
* @author Christian Femers
* @since 0.2.0
* @version 1.0.0
* @version 1.1.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/Deadline.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
*
* @author Christian Femers
* @since 0.1.0
* @version 1.1.0
* @version 1.2.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/ExtendedDeadline.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
* @see Deadline
* @author Christian Femers
* @since 0.1.0
* @version 1.0.1
* @version 1.1.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/MirrorOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
*
* @author Christian Femers
* @since 0.1.0
* @version 1.1.0
* @version 1.2.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/de/tum/in/test/api/PathActionLevel.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package de.tum.in.test.api;

import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;

@API(status = Status.STABLE)
public enum PathActionLevel {
READ,
READLINK,
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/de/tum/in/test/api/PathType.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,18 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;

import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;

import de.tum.in.test.api.util.LruCache;

/**
* Defines different path pattern matching notations which can be converted into
* {@link PathMatcher}s.
*
* @author Christian Femers
*/
@API(status = Status.STABLE)
public enum PathType {
/**
* Absolute path must match exactly; given path may be specified relative
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
* @see TestUtils#privilegedThrow(java.util.concurrent.Callable)
* @author Christian Femers
* @since 0.5.2
* @version 1.0.1
* @version 1.1.0
*/
@API(status = Status.EXPERIMENTAL)
@API(status = Status.STABLE)
@Inherited
@Retention(RUNTIME)
@Target({ TYPE, METHOD, ANNOTATION_TYPE })
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/StrictTimeout.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
*
* @author Christian Femers
* @since 0.1.0
* @version 2.0.0
* @version 2.1.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/de/tum/in/test/api/TestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
import de.tum.in.test.api.internal.BlacklistedInvoker;
import de.tum.in.test.api.internal.PrivilegedException;

@API(status = Status.EXPERIMENTAL)
/**
* Utilities for writing tests with Ares in the form of static methods.
*
* @author Christian Femers
*/
@API(status = Status.MAINTAINED)
public final class TestUtils {

private TestUtils() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/tum/in/test/api/TrustedThreads.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
* {@link ArtemisSecurityManager#requestThreadWhitelisting(Thread)}.
*
* @since 1.7.3
* @version 1.0.0
* @version 1.1.0
* @author Christian Femers
*/
@API(status = Status.MAINTAINED)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/WhitelistClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
*
* @author Christian Femers
* @since 0.4.4
* @version 1.0.0
* @version 1.1.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/WhitelistClasses.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* @see WhitelistClass
* @author Christian Femers
* @since 0.4.4
* @version 1.0.0
* @version 1.1.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/WhitelistPackage.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
*
* @author Christian Femers
* @since 0.5.1
* @version 1.1.1
* @version 1.2.0
*/
@API(status = Status.EXPERIMENTAL)
@API(status = Status.MAINTAINED)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/WhitelistPackages.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* @see WhitelistPackage
* @author Christian Femers
* @since 0.5.1
* @version 1.0.0
* @version 1.1.0
*/
@API(status = Status.EXPERIMENTAL)
@API(status = Status.MAINTAINED)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/WhitelistPath.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
* @see Path
* @author Christian Femers
* @since 0.2.0
* @version 1.1.0
* @version 1.2.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/test/api/WhitelistPaths.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
* @see Path
* @author Christian Femers
* @since 0.2.0
* @version 1.0.0
* @version 1.1.0
*/
@API(status = Status.MAINTAINED)
@API(status = Status.STABLE)
@Inherited
@Documented
@Retention(RUNTIME)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/tum/in/test/api/dynamic/Check.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;

@API(status = Status.EXPERIMENTAL)
@API(status = Status.MAINTAINED)
public enum Check {

STATIC {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/tum/in/test/api/dynamic/Checkable.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;

@API(status = Status.EXPERIMENTAL)
@API(status = Status.MAINTAINED)
public interface Checkable {

boolean exists();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/tum/in/test/api/dynamic/DynamicClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;

@API(status = Status.EXPERIMENTAL)
@API(status = Status.MAINTAINED)
public class DynamicClass<T> implements Checkable {

private static final Map<Class<?>, Class<?>> primitiveWrappers = Map.of(Boolean.TYPE, Boolean.class, Byte.TYPE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import de.tum.in.test.api.util.UnexpectedExceptionError;

@API(status = Status.EXPERIMENTAL)
@API(status = Status.MAINTAINED)
public class DynamicConstructor<T> implements Checkable {

private final DynamicClass<T> owner;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/tum/in/test/api/dynamic/DynamicField.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;

@API(status = Status.EXPERIMENTAL)
@API(status = Status.MAINTAINED)
public class DynamicField<T> implements Checkable {

private final DynamicClass<?> owner;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import de.tum.in.test.api.util.UnexpectedExceptionError;

@API(status = Status.EXPERIMENTAL)
@API(status = Status.MAINTAINED)
public class DynamicMethod<T> implements Checkable {
private final DynamicClass<?> owner;
private final String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;

import de.tum.in.test.api.AddTrustedPackage;
import de.tum.in.test.api.AllowLocalPort;
import de.tum.in.test.api.AllowThreads;
Expand All @@ -29,6 +32,7 @@
import de.tum.in.test.api.util.PathRule;
import de.tum.in.test.api.util.RuleType;

@API(status = Status.INTERNAL)
public final class ConfigurationUtils {

private ConfigurationUtils() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
package de.tum.in.test.api.internal;

import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;

import de.tum.in.test.api.io.IOTester;
import de.tum.in.test.api.security.ArtemisSecurityManager;

@API(status = Status.INTERNAL)
public final class IOTesterManager {

static {
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/de/tum/in/test/api/internal/ReportingUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import java.util.Objects;
import java.util.Optional;

import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;
import org.junit.jupiter.api.extension.InvocationInterceptor.Invocation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -19,6 +21,7 @@
*
* @author Christian Femers
*/
@API(status = Status.INTERNAL)
public final class ReportingUtils {

private static final Logger LOG = LoggerFactory.getLogger(ReportingUtils.class);
Expand Down
Loading

0 comments on commit 5dce034

Please sign in to comment.