インターフェースの使用
org.springframework.test.annotation.ProfileValueSource
ProfileValueSource を使用するパッケージ
org.springframework.test.annotation 内の ProfileValueSource 使用
ProfileValueSource を実装している org.springframework.test.annotation のクラス修飾子と型メソッド説明static ProfileValueSource
ProfileValueUtils.retrieveProfileValueSource
(ClassSE<?> testClass) 指定されたtest class
SE のProfileValueSource
型を@ProfileValueSourceConfiguration
アノテーションで構成されたとおりに取得し、その型の新しいインスタンスをインスタンス化します。型 ProfileValueSource のパラメーターを持つ org.springframework.test.annotation のメソッド修飾子と型メソッド説明static boolean
ProfileValueUtils.isTestEnabledInThisEnvironment
(ProfileValueSource profileValueSource, MethodSE testMethod, ClassSE<?> testClass) テストメソッド自体またはクラスレベルで宣言できる@IfProfileValue
アノテーションで指定されているように、提供されたtestMethod
が現在の環境で有効になっているかどうかを判断します。