spring-framework / org.springframework.test.context.web / WebMergedContextConfiguration / <init>

<init>

WebMergedContextConfiguration(mergedConfig: MergedContextConfiguration, resourceBasePath: String)

Create a new WebMergedContextConfiguration instance by copying all properties from the supplied MergedContextConfiguration.

If an empty value is supplied for the resourceBasePath an empty string will be used.

Parameters

resourceBasePath - the resource path to the root directory of the web application

Since
4.1

WebMergedContextConfiguration(testClass: Class<*>, @Nullable locations: Array<String>, @Nullable classes: Array<Class<*>>, @Nullable contextInitializerClasses: MutableSet<Class<out ApplicationContextInitializer<*>>>, @Nullable activeProfiles: Array<String>, @Nullable propertySourceLocations: Array<String>, @Nullable propertySourceProperties: Array<String>, resourceBasePath: String, contextLoader: ContextLoader, cacheAwareContextLoaderDelegate: CacheAwareContextLoaderDelegate, @Nullable parent: MergedContextConfiguration)

Create a new WebMergedContextConfiguration instance for the supplied parameters.

If a null value is supplied for locations, classes, activeProfiles, propertySourceLocations, or propertySourceProperties an empty array will be stored instead. If a null value is supplied for the contextInitializerClasses an empty set will be stored instead. If an empty value is supplied for the resourceBasePath an empty string will be used. Furthermore, active profiles will be sorted, and duplicate profiles will be removed.

Parameters

testClass - the test class for which the configuration was merged

locations - the merged resource locations

classes - the merged annotated classes

contextInitializerClasses - the merged context initializer classes

activeProfiles - the merged active bean definition profiles

propertySourceLocations - the merged PropertySource locations

propertySourceProperties - the merged PropertySource properties

resourceBasePath - the resource path to the root directory of the web application

contextLoader - the resolved ContextLoader

cacheAwareContextLoaderDelegate - a cache-aware context loader delegate with which to retrieve the parent context

parent - the parent configuration or null if there is no parent

Since
4.1

WebMergedContextConfiguration(testClass: Class<*>, @Nullable locations: Array<String>, @Nullable classes: Array<Class<*>>, @Nullable contextInitializerClasses: MutableSet<Class<out ApplicationContextInitializer<*>>>, @Nullable activeProfiles: Array<String>, @Nullable propertySourceLocations: Array<String>, @Nullable propertySourceProperties: Array<String>, @Nullable contextCustomizers: MutableSet<ContextCustomizer>, resourceBasePath: String, contextLoader: ContextLoader, cacheAwareContextLoaderDelegate: CacheAwareContextLoaderDelegate, @Nullable parent: MergedContextConfiguration)

Create a new WebMergedContextConfiguration instance for the supplied parameters.

If a null value is supplied for locations, classes, activeProfiles, propertySourceLocations, or propertySourceProperties an empty array will be stored instead. If a null value is supplied for contextInitializerClasses or contextCustomizers, an empty set will be stored instead. If an empty value is supplied for the resourceBasePath an empty string will be used. Furthermore, active profiles will be sorted, and duplicate profiles will be removed.

Parameters

testClass - the test class for which the configuration was merged

locations - the merged context resource locations

classes - the merged annotated classes

contextInitializerClasses - the merged context initializer classes

activeProfiles - the merged active bean definition profiles

propertySourceLocations - the merged PropertySource locations

propertySourceProperties - the merged PropertySource properties

contextCustomizers - the context customizers

resourceBasePath - the resource path to the root directory of the web application

contextLoader - the resolved ContextLoader

cacheAwareContextLoaderDelegate - a cache-aware context loader delegate with which to retrieve the parent context

parent - the parent configuration or null if there is no parent

Since
4.3