Class TestProfileResolver
java.lang.Object
info.ejava.examples.db.mongo.books.TestProfileResolver
- All Implemented Interfaces:
org.springframework.test.context.ActiveProfilesResolver
public class TestProfileResolver
extends Object
implements org.springframework.test.context.ActiveProfilesResolver
Determines the profile(s) to use when running tests or wherever using @ActiveProfile
and Spring Boot properties.
Ref: https://www.allprogrammingtutorials.com/tutorials/overriding-active-profile-boot-integration-tests.php
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.test.context.ActiveProfilesResolver
private final String
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PROFILE_KEY
- See Also:
-
defaultResolver
private final org.springframework.test.context.ActiveProfilesResolver defaultResolver
-
-
Constructor Details
-
TestProfileResolver
public TestProfileResolver()
-
-
Method Details
-
resolve
- Specified by:
resolve
in interfaceorg.springframework.test.context.ActiveProfilesResolver
-