@FunctionalInterface public interface ActiveProfilesResolver
ApplicationContext
for a test class.
A custom ActiveProfilesResolver
can be registered via the
resolver
attribute of @ActiveProfiles
.
Concrete implementations must provide a public
no-args constructor.
ActiveProfiles
Modifier and Type | Method and Description |
---|---|
String[] |
resolve(Class<?> testClass)
Resolve the bean definition profiles to use when loading an
ApplicationContext for the given test class. |
String[] resolve(Class<?> testClass)
ApplicationContext
for the given test class.testClass
- the test class for which the profiles should be resolved;
never null
ApplicationContext
; never null
ActiveProfiles.resolver()
,
ActiveProfiles.inheritProfiles()