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