public class DefaultActiveProfilesResolver extends Object implements ActiveProfilesResolver
ActiveProfilesResolver
strategy that
resolves active bean definition profiles based solely on profiles
configured declaratively via ActiveProfiles.profiles()
or
ActiveProfiles.value()
.ActiveProfiles
,
ActiveProfilesResolver
Constructor and Description |
---|
DefaultActiveProfilesResolver() |
Modifier and Type | Method and Description |
---|---|
String[] |
resolve(Class<?> testClass)
Resolve the bean definition profiles for the given test class based on profiles configured declaratively via
ActiveProfiles.profiles() or ActiveProfiles.value() . |
public String[] resolve(Class<?> testClass)
ActiveProfiles.profiles()
or ActiveProfiles.value()
.resolve
in interface ActiveProfilesResolver
testClass
- the test class for which the profiles should be resolved;
never null
ApplicationContext
; never null
ActiveProfiles.resolver()
,
ActiveProfiles.inheritProfiles()