Merge branch '1.2.x'
This commit is contained in:
commit
0bcbac6ce7
|
|
@ -67,6 +67,7 @@ import org.springframework.web.context.support.GenericWebApplicationContext;
|
|||
*
|
||||
* @author Dave Syer
|
||||
* @author Phillip Webb
|
||||
* @author Andy Wilkinson
|
||||
* @see IntegrationTest
|
||||
* @see WebIntegrationTest
|
||||
* @see TestRestTemplate
|
||||
|
|
@ -80,6 +81,7 @@ public class SpringApplicationContextLoader extends AbstractContextLoader {
|
|||
throws Exception {
|
||||
assertValidAnnotations(config.getTestClass());
|
||||
SpringApplication application = getSpringApplication();
|
||||
application.setMainApplicationClass(config.getTestClass());
|
||||
application.setSources(getSources(config));
|
||||
ConfigurableEnvironment environment = new StandardEnvironment();
|
||||
if (!ObjectUtils.isEmpty(config.getActiveProfiles())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue