@TargetSE(valueSE=TYPESE) @RetentionSE(valueSE=RUNTIMESE) @DocumentedSE @InheritedSE public @interface BootstrapWith
@BootstrapWith
は、Spring TestContext フレームワークをブートストラップする方法を決定するために使用されるクラスレベルのメタデータを定義します。 このアノテーションは、カスタム構成のアノテーションを作成するためのメタアノテーションとしても使用できます。Spring Framework 5.1 の時点で、ローカルで宣言された @BootstrapWith
アノテーション(つまり、現在のテストクラスに直接存在するアノテーション)は、@BootstrapWith
のメタ存在宣言をオーバーライドします。
Spring Framework 5.3 以降、このアノテーションはデフォルトでそれを囲むテストクラスから継承されます。詳細については、@NestedTestConfiguration
を参照してください。
BootstrapContext
, TestContextBootstrapper
修飾子と型 | オプションの要素と説明 |
---|---|
ClassSE<? extends TestContextBootstrapper> | value Spring TestContext フレームワークのブートストラップに使用する TestContextBootstrapper 。 |
public abstract ClassSE<? extends TestContextBootstrapper> value
TestContextBootstrapper
。