@ -67,6 +67,7 @@ import org.springframework.web.context.support.GenericWebApplicationContext;
@@ -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 {
@@ -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 ( ) ) ) {