Make SpringApplicationConfiguration use SpringApplicationContextLoader

The intention in 1.4 is for the deprecated testing functionality to
behave exactly as it did in 1.3. To help with this, this commit
updates SpringApplicationConfiguration to use
SpringApplicationContextLoader as its loader, just as it did in 1.3.

Closes gh-5882
pull/5900/head
Andy Wilkinson 9 years ago
parent 5d2177038f
commit db21bcdff6

@ -35,7 +35,7 @@ import org.springframework.test.context.ContextConfiguration;
* {@code ApplicationContext} for integration tests.
* <p>
* Similar to the standard {@link ContextConfiguration @ContextConfiguration} but uses
* Spring Boot's {@link SpringBootContextLoader}.
* Spring Boot's {@link SpringApplicationContextLoader}.
*
* @author Dave Syer
* @author Sam Brannen
@ -44,7 +44,7 @@ import org.springframework.test.context.ContextConfiguration;
* @deprecated as of 1.4 in favor of {@link SpringBootTest} or direct use of
* {@link SpringBootContextLoader}.
*/
@ContextConfiguration(loader = SpringBootContextLoader.class)
@ContextConfiguration(loader = SpringApplicationContextLoader.class)
@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)

Loading…
Cancel
Save