@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 |
boolean |
inheritInitializers |
boolean |
inheritLocations |
Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>[] |
initializers |
String[] |
locations |
String |
name |
@AliasFor(annotation=org.springframework.test.context.ContextConfiguration.class, attribute="locations") public abstract String[] locations
ContextConfiguration.locations()
@AliasFor(annotation=org.springframework.test.context.ContextConfiguration.class, attribute="classes") 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 © 2015 Pivotal Software, Inc.. All rights reserved.