Class DefaultActiveProfilesResolver
- java.lang.Object
- org.springframework.test.context.support.DefaultActiveProfilesResolver
- All Implemented Interfaces:
ActiveProfilesResolver
public class DefaultActiveProfilesResolver extends Object implements ActiveProfilesResolver
Default implementation of theActiveProfilesResolver
strategy that resolves active bean definition profiles based solely on profiles configured declaratively viaActiveProfiles.profiles()
orActiveProfiles.value()
.- Since:
- 4.1
- Author:
- Sam Brannen
- See Also:
ActiveProfiles
,ActiveProfilesResolver
Constructor Summary
Constructors Constructor Description DefaultActiveProfilesResolver()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
resolve(Class<?> testClass)
Resolve the bean definition profiles for the given test class based on profiles configured declaratively viaActiveProfiles.profiles()
orActiveProfiles.value()
.
Constructor Detail
DefaultActiveProfilesResolver
public DefaultActiveProfilesResolver()
Method Detail
resolve
public String[] resolve(Class<?> testClass)
Resolve the bean definition profiles for the given test class based on profiles configured declaratively viaActiveProfiles.profiles()
orActiveProfiles.value()
.- Specified by:
resolve
in 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:
ActiveProfiles.resolver()
,ActiveProfiles.inheritProfiles()