レコードクラスの使用箇所
org.springframework.core.io.support.PropertySourceDescriptor
パッケージ
説明
Spring のリソース抽象化のサポートクラス。
このパッケージには Spring TestContext フレームワークが含まれており、使用中の実際のテストフレームワークにとらわれないアノテーション駆動型ユニットおよび統合テストのサポートを提供します。
Spring TestContext フレームワークのサポートクラス。
Web は、Spring TestContext フレームワークのクラスをサポートします。
org.springframework.core.io.support 内の PropertySourceDescriptor 使用
修飾子と型メソッド説明void
PropertySourceProcessor.processPropertySource
(PropertySourceDescriptor descriptor) このインスタンスによって管理される環境に対して、指定されたPropertySourceDescriptor
を処理します。org.springframework.test.context 内の PropertySourceDescriptor 使用
修飾子と型メソッド説明MergedContextConfiguration.getPropertySourceDescriptors()
テストクラスのテストPropertySources
のリソースの場所のマージされた記述子を取得します。修飾子コンストラクター説明MergedContextConfiguration
(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, ListSE<PropertySourceDescriptor> propertySourceDescriptors, StringSE[] propertySourceProperties, SetSE<ContextCustomizer> contextCustomizers, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) 指定されたパラメーターの新しいMergedContextConfiguration
インスタンスを作成します。org.springframework.test.context.support 内の PropertySourceDescriptor 使用
修飾子と型メソッド説明static void
TestPropertySourceUtils.addPropertySourcesToEnvironment
(ConfigurableApplicationContext context, ListSE<PropertySourceDescriptor> descriptors) static void
TestPropertySourceUtils.addPropertySourcesToEnvironment
(ConfigurableEnvironment environment, ResourceLoader resourceLoader, ListSE<PropertySourceDescriptor> descriptors) 指定されたdescriptors
のプロパティソースを、指定されたenvironment
に追加します。org.springframework.test.context.web 内の PropertySourceDescriptor 使用
修飾子コンストラクター説明WebMergedContextConfiguration
(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, ListSE<PropertySourceDescriptor> propertySourceDescriptors, StringSE[] propertySourceProperties, SetSE<ContextCustomizer> contextCustomizers, StringSE resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) 指定されたパラメーターの新しいWebMergedContextConfiguration
インスタンスを作成します。