インターフェースの使用
org.springframework.test.context.ContextCustomizer
ContextCustomizer を使用するパッケージ
パッケージ
説明
このパッケージには Spring TestContext フレームワークが含まれており、使用中の実際のテストフレームワークにとらわれないアノテーション駆動型ユニットおよび統合テストのサポートを提供します。
org.springframework.test.context 内の ContextCustomizer 使用
修飾子と型メソッド説明ContextCustomizerFactory.createContextCustomizer
(ClassSE<?> testClass, ListSE<ContextConfigurationAttributes> configAttributes) ConfigurableApplicationContext
をリフレッシュする前にカスタマイズするために使用するContextCustomizer
を作成します。型 ContextCustomizer の引数を持つ型を返す org.springframework.test.context のメソッド修飾子と型メソッド説明MergedContextConfiguration.getContextCustomizers()
アプリケーションコンテキストが読み込まれたときに適用される、マージされたContextCustomizers
を取得します。