Add profiles directly to the application environment for tests
Prior to this commit, active profiles were being added to the Spring Boot
application environment by setting the `spring.profiles.active` property.
This could result in profiles getting parsed differently than other uses of `@ActiveProfiles`.
Setting the profiles directly in the `Environment` prevents this parsing.
See gh-19556
pull/19581/head
Scott Frederick6 years agocommitted byMadhura Bhave
@ -92,7 +92,7 @@ public class SpringBootContextLoader extends AbstractContextLoader {
@@ -92,7 +92,7 @@ public class SpringBootContextLoader extends AbstractContextLoader {
@ -138,11 +138,6 @@ public class SpringBootContextLoader extends AbstractContextLoader {
@@ -138,11 +138,6 @@ public class SpringBootContextLoader extends AbstractContextLoader {