Package org.junit.jupiter.api
Annotation Type Test
-
@Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @Documented @API(status=STABLE, since="5.0") @Testable public @interface Test
@Testis used to signal that the annotated method is a test method.@Testmethods must not beprivateorstaticand must not return a value.@Testmethods may optionally declare parameters to be resolved byParameterResolvers.@Testmay also be used as a meta-annotation in order to create a custom composed annotation that inherits the semantics of@Test.- Since:
- 5.0
- See Also:
TestInfo,DisplayName,Tag,BeforeAll,AfterAll,BeforeEach,AfterEach