Annotation Type DisabledOnNativeImage


  • @Target({TYPE,METHOD})
    @Retention(RUNTIME)
    @Documented
    @Inherited
    @Deprecated(since="2.9.0.Final",
                forRemoval=true)
    public @interface DisabledOnNativeImage
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use {@link @DisabledOnIntegrationTest} instead.
    @DisabledOnNativeImage is used to signal that the annotated test class or test method for native images is currently disabled and should not be executed.

    @DisabledOnNativeImage may optionally be declared with a reason to document why the annotated test class or test method is disabled.

    When applied at the class level, all test methods within that class are automatically disabled during the native image tests as well.

    When applied at the method level, the presence of this annotation does not prevent the test class from being instantiated. Rather, it prevents the execution of the test method and method-level lifecycle callbacks such as @BeforeEach methods, @AfterEach methods, and corresponding extension APIs.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String value
      Deprecated, for removal: This API element is subject to removal in a future version.
      Reason for disabling this test
    • Element Detail

      • value

        String value
        Deprecated, for removal: This API element is subject to removal in a future version.
        Reason for disabling this test
        Default:
        ""