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