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