Class DefaultActiveProfilesResolver
java.lang.Object
org.springframework.test.context.support.DefaultActiveProfilesResolver
- All Implemented Interfaces:
ActiveProfilesResolver
Default implementation of the
ActiveProfilesResolver strategy that
resolves active bean definition profiles based solely on profiles
configured declaratively via ActiveProfiles.profiles() or
ActiveProfiles.value().- Since:
- 4.1
- Author:
- Sam Brannen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Resolve the bean definition profiles for the given test class based on profiles configured declaratively viaActiveProfiles.profiles()orActiveProfiles.value().
-
Constructor Details
-
DefaultActiveProfilesResolver
public DefaultActiveProfilesResolver()
-
-
Method Details
-
resolve
Resolve the bean definition profiles for the given test class based on profiles configured declaratively viaActiveProfiles.profiles()orActiveProfiles.value().- Specified by:
resolvein interfaceActiveProfilesResolver- Parameters:
testClass- the test class for which the profiles should be resolved; nevernull- Returns:
- the list of bean definition profiles to use when loading the
ApplicationContext; nevernull - See Also:
-