@ContextConfiguration(loader=SpringApplicationContextLoader.class) @Documented @Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface SpringApplicationConfiguration
ApplicationContext
for integration tests.
Similar to the standard @ContextConfiguration
but uses
Spring Boot's SpringApplicationContextLoader
.
SpringApplicationContextLoader
,
ContextConfiguration
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.
|
@AliasFor(value="classes") public abstract Class<?>[] value
ContextConfiguration.classes()
@AliasFor(annotation=org.springframework.test.context.ContextConfiguration.class, attribute="locations") public abstract String[] locations
ContextConfiguration.locations()
@AliasFor(value="value") public abstract Class<?>[] classes
ContextConfiguration.classes()
@AliasFor(annotation=org.springframework.test.context.ContextConfiguration.class, attribute="initializers") public abstract Class<? extends org.springframework.context.ApplicationContextInitializer<? extends org.springframework.context.ConfigurableApplicationContext>>[] initializers
ContextConfiguration.initializers()
@AliasFor(annotation=org.springframework.test.context.ContextConfiguration.class, attribute="inheritLocations") public abstract boolean inheritLocations
true
if context locations should be inheritedContextConfiguration.inheritLocations()
@AliasFor(annotation=org.springframework.test.context.ContextConfiguration.class, attribute="inheritInitializers") public abstract boolean inheritInitializers
true
if context initializers should be inheritedContextConfiguration.inheritInitializers()
@AliasFor(annotation=org.springframework.test.context.ContextConfiguration.class, attribute="name") public abstract String name
ContextConfiguration.name()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.