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 |
---|---|
java.lang.String[] |
resolve(java.lang.Class<?> testClass)
Resolve the bean definition profiles to use when loading an
ApplicationContext for the given test class. |
java.lang.String[] resolve(java.lang.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()