org.springframework.test.context

Annotation Type BootstrapWith



  • @Target(value=TYPE)
     @Retention(value=RUNTIME)
     @Documented
     @Inherited
    public @interface BootstrapWith
    @BootstrapWith defines class-level metadata that is used to determine how to bootstrap the Spring TestContext Framework.

    This annotation may also be used as a meta-annotation to create custom composed annotations. As of Spring Framework 5.1, a locally declared @BootstrapWith annotation (i.e., one that is directly present on the current test class) will override any meta-present declarations of @BootstrapWith.

    Since:
    4.1
    Author:
    Sam Brannen
    See Also:
    BootstrapContext, TestContextBootstrapper
    • Element Detail

      • value

        public abstract java.lang.Class<? extends TestContextBootstrapper> value
        The TestContextBootstrapper to use to bootstrap the Spring TestContext Framework.
        Default:
        org.springframework.test.context.TestContextBootstrapper.class