Debian Codegraph @

junit-jupiter-api/src/main/java/org/junit/jupiter/api/condition/EnabledIfSystemProperties.java

raw symbols SCIP
1 /*
2 * Copyright 2015-2024 the original author or authors.
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v2.0 which
6 * accompanies this distribution and is available at
7 *
8 * https://www.eclipse.org/legal/epl-v20.html
9 */
10
11 package org.junit.jupiter.api.condition;
12
13 import static org.apiguardian.api.API.Status.STABLE;
14
15 import java.lang.annotation.Documented;
16 import java.lang.annotation.ElementType;
17 import java.lang.annotation.Retention;
18 import java.lang.annotation.RetentionPolicy;
19 import java.lang.annotation.Target;
20
21 import org.apiguardian.api.API;
22
23 /**
24 * {@code @EnabledIfSystemProperties} is a container for one or more
25 * {@link EnabledIfSystemProperty @EnabledIfSystemProperty} declarations.
26 *
27 * <p>Note, however, that use of the {@code @EnabledIfSystemProperties} container
28 * is completely optional since {@code @EnabledIfSystemProperty} is a {@linkplain
29 * java.lang.annotation.Repeatable repeatable} annotation.
30 *
31 * <p>This annotation is not {@link java.lang.annotation.Inherited @Inherited}.
32 * Consequently, if you wish to apply the same semantics to a subclass, this
33 * annotation must be redeclared on the subclass.
34 *
35 * @since 5.6
36 * @see EnabledIfSystemProperty
37 * @see java.lang.annotation.Repeatable
38 */
39 @Target({ ElementType.TYPE, ElementType.METHOD })
40 @Retention(RetentionPolicy.RUNTIME)
41 @Documented
42 @API(status = STABLE, since = "5.6")
43 public @interface EnabledIfSystemProperties {
44
45 /**
46 * An array of one or more {@link EnabledIfSystemProperty @EnabledIfSystemProperty}
47 * declarations.
48 */
49 EnabledIfSystemProperty[] value();
50
51 }