public class DefaultActiveProfilesResolver extends java.lang.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 |
---|---|
java.lang.String[] |
resolve(java.lang.Class<?> testClass)
Resolve the bean definition profiles for the given test class based on profiles configured declaratively via
ActiveProfiles.profiles() or ActiveProfiles.value() . |
public java.lang.String[] resolve(java.lang.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()