org.springframework.boot.test

Annotation Type SpringApplicationConfiguration

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      Class<?>[] classes
      The context configuration classes.
      boolean inheritInitializers
      Should initializers be inherited.
      boolean inheritLocations
      Should context locations be inherited.
      Class<? extends org.springframework.context.ApplicationContextInitializer<? extends org.springframework.context.ConfigurableApplicationContext>>[] initializers
      The context configuration initializers.
      String[] locations
      The context configuration locations.
      String name
      The name of the context hierarchy level.
      Class<?>[] value
      The context configuration classes.
    • Element Detail

      • value

        @AliasFor(value="classes")
        public abstract Class<?>[] value
        The context configuration classes.
        Returns:
        the context configuration classes
        See Also:
        ContextConfiguration.classes()
        Default:
        {}
      • locations

        @AliasFor(annotation=org.springframework.test.context.ContextConfiguration.class,
                  attribute="locations")
        public abstract String[] locations
        The context configuration locations.
        Returns:
        the context configuration locations
        See Also:
        ContextConfiguration.locations()
        Default:
        {}
      • classes

        @AliasFor(value="value")
        public abstract Class<?>[] classes
        The context configuration classes.
        Returns:
        the context configuration classes
        See Also:
        ContextConfiguration.classes()
        Default:
        {}
      • initializers

        @AliasFor(annotation=org.springframework.test.context.ContextConfiguration.class,
                  attribute="initializers")
        public abstract Class<? extends org.springframework.context.ApplicationContextInitializer<? extends org.springframework.context.ConfigurableApplicationContext>>[] initializers
        The context configuration initializers.
        Returns:
        the context configuration initializers
        See Also:
        ContextConfiguration.initializers()
        Default:
        {}
      • inheritLocations

        @AliasFor(annotation=org.springframework.test.context.ContextConfiguration.class,
                  attribute="inheritLocations")
        public abstract boolean inheritLocations
        Should context locations be inherited.
        Returns:
        true if context locations should be inherited
        See Also:
        ContextConfiguration.inheritLocations()
        Default:
        true
      • inheritInitializers

        @AliasFor(annotation=org.springframework.test.context.ContextConfiguration.class,
                  attribute="inheritInitializers")
        public abstract boolean inheritInitializers
        Should initializers be inherited.
        Returns:
        true if context initializers should be inherited
        See Also:
        ContextConfiguration.inheritInitializers()
        Default:
        true
      • name

        @AliasFor(annotation=org.springframework.test.context.ContextConfiguration.class,
                  attribute="name")
        public abstract String name
        The name of the context hierarchy level.
        Returns:
        the name of the context hierarchy level
        See Also:
        ContextConfiguration.name()
        Default:
        ""

Copyright © 2016 Pivotal Software, Inc.. All rights reserved.