SpringBootTest
or direct use of
SpringBootContextLoader
.@ContextConfiguration(loader=SpringApplicationContextLoader.class) @Documented @Inherited @Retention(value=RUNTIME) @Target(value=TYPE) @Deprecated public @interface SpringApplicationConfiguration
ApplicationContext
for integration tests.
Similar to the standard @ContextConfiguration
but uses
Spring Boot's SpringApplicationContextLoader
.
SpringBootContextLoader
,
ContextConfiguration
Modifier and Type | Optional Element and Description |
---|---|
Class<?>[] |
classes
Deprecated.
The context configuration classes.
|
boolean |
inheritInitializers
Deprecated.
Should initializers be inherited.
|
boolean |
inheritLocations
Deprecated.
Should context locations be inherited.
|
Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>[] |
initializers
Deprecated.
The context configuration initializers.
|
String[] |
locations
Deprecated.
The context configuration locations.
|
String |
name
Deprecated.
The name of the context hierarchy level.
|
Class<?>[] |
value
Deprecated.
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 ApplicationContextInitializer<? extends 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.