Debian Codegraph @

junit-jupiter-api/src/main/java/org/junit/jupiter/api/extension/Extensions.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.extension;
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.Inherited;
18 import java.lang.annotation.Retention;
19 import java.lang.annotation.RetentionPolicy;
20 import java.lang.annotation.Target;
21
22 import org.apiguardian.api.API;
23
24 /**
25 * {@code @Extensions} is a container for one or more {@code @ExtendWith}
26 * declarations.
27 *
28 * <p>Note, however, that use of the {@code @Extensions} container is completely
29 * optional since {@code @ExtendWith} is a {@linkplain java.lang.annotation.Repeatable
30 * repeatable} annotation.
31 *
32 * @since 5.0
33 * @see ExtendWith
34 * @see java.lang.annotation.Repeatable
35 */
36 @Target({ ElementType.TYPE, ElementType.METHOD })
37 @Retention(RetentionPolicy.RUNTIME)
38 @Documented
39 @Inherited
40 @API(status = STABLE, since = "5.0")
41 public @interface Extensions {
42
43 /**
44 * An array of one or more {@link ExtendWith @ExtendWith} declarations.
45 */
46 ExtendWith[] value();
47
48 }