アノテーションインターフェース SpringJUnitConfig
@ExtendWith(SpringExtension.class)
@ContextConfiguration
@DocumentedSE
@InheritedSE
@RetentionSE(RUNTIMESE)
@TargetSE(TYPESE)
public @interface SpringJUnitConfig
@SpringJUnitConfig は、JUnit Jupiter の @ExtendWith(SpringExtension.class) と Spring TestContext フレームワークの @ContextConfiguration を組み合わせた合成アノテーションです。 このアノテーションは、デフォルトで、囲んでいるテストクラスから継承されます。詳細については、@NestedTestConfiguration を参照してください。
- 導入:
- 5.0
- 作成者:
- Sam Brannen
- 関連事項:
- オプション要素の概要オプション要素修飾子と型オプションの要素説明- ClassSE<?>[]- ContextConfiguration.classes()のエイリアス。- boolean- boolean- ClassSE<? extends ApplicationContextInitializer<?>>[]- ClassSE<? extends ContextLoader>- ContextConfiguration.loader()のエイリアス。- StringSE[]- ContextConfiguration.locations()のエイリアス。- ContextConfiguration.name()のエイリアス。- ClassSE<?>[]- ContextConfiguration.classes()のエイリアス。
- 要素の詳細- value- ContextConfiguration.classes()のエイリアス。- デフォルト:
- {}
 
- classes- ContextConfiguration.classes()のエイリアス。- デフォルト:
- {}
 
- locations- ContextConfiguration.locations()のエイリアス。- デフォルト:
- {}
 
- initializers@AliasFor(annotation=ContextConfiguration.class) ClassSE<? extends ApplicationContextInitializer<?>>[] initializers- デフォルト:
- {}
 
- inheritLocations- デフォルト:
- true
 
- inheritInitializers- デフォルト:
- true
 
- loader- ContextConfiguration.loader()のエイリアス。- 導入:
- 6.1
 - デフォルト:
- org.springframework.test.context.ContextLoader.class
 
- name- ContextConfiguration.name()のエイリアス。- デフォルト:
- ""