@ExtendWith(value=SpringExtension.class) @ContextConfiguration @WebAppConfiguration @Documented @Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface SpringJUnitWebConfig
@SpringJUnitWebConfig
is a composed annotation that combines
@ExtendWith(SpringExtension.class)
from JUnit Jupiter with
@ContextConfiguration
and
@WebAppConfiguration
from the Spring TestContext
Framework.ExtendWith
,
SpringExtension
,
ContextConfiguration
,
WebAppConfiguration
,
SpringJUnitConfig
Modifier and Type | Optional Element and Description |
---|---|
Class<?>[] |
classes
Alias for
ContextConfiguration.classes() . |
boolean |
inheritInitializers
Alias for
ContextConfiguration.inheritInitializers() . |
boolean |
inheritLocations
Alias for
ContextConfiguration.inheritLocations() . |
Class<? extends ApplicationContextInitializer<?>>[] |
initializers
Alias for
ContextConfiguration.initializers() . |
String[] |
locations
Alias for
ContextConfiguration.locations() . |
String |
name
Alias for
ContextConfiguration.name() . |
String |
resourcePath
Alias for
WebAppConfiguration.value() . |
Class<?>[] |
value
Alias for
ContextConfiguration.classes() . |
@AliasFor(annotation=ContextConfiguration.class, attribute="classes") public abstract Class<?>[] value
ContextConfiguration.classes()
.@AliasFor(annotation=ContextConfiguration.class) public abstract Class<?>[] classes
ContextConfiguration.classes()
.@AliasFor(annotation=ContextConfiguration.class) public abstract String[] locations
ContextConfiguration.locations()
.@AliasFor(annotation=ContextConfiguration.class) public abstract Class<? extends ApplicationContextInitializer<?>>[] initializers
ContextConfiguration.initializers()
.@AliasFor(annotation=ContextConfiguration.class) public abstract boolean inheritLocations
ContextConfiguration.inheritLocations()
.@AliasFor(annotation=ContextConfiguration.class) public abstract boolean inheritInitializers
ContextConfiguration.inheritInitializers()
.@AliasFor(annotation=ContextConfiguration.class) public abstract String name
ContextConfiguration.name()
.@AliasFor(annotation=WebAppConfiguration.class, attribute="value") public abstract String resourcePath
WebAppConfiguration.value()
.