类 InfraApplicationContextLoader

java.lang.Object
cn.taketoday.test.context.support.AbstractContextLoader
cn.taketoday.framework.test.context.InfraApplicationContextLoader
所有已实现的接口:
ContextLoader, SmartContextLoader

public class InfraApplicationContextLoader extends AbstractContextLoader
A ContextLoader that can be used to test Infra applications (those that normally startup using Application). Although this loader can be used directly, most test will instead want to use it with @InfraTest.

The loader supports both standard MergedContextConfiguration as well as WebMergedContextConfiguration. If WebMergedContextConfiguration is used the context will either use a mock servlet environment, or start the full embedded web server.

If @ActiveProfiles are provided in the test class they will be used to create the application context.

从以下版本开始:
4.0
作者:
Dave Syer, Phillip Webb, Andy Wilkinson, Stephane Nicoll, Madhura Bhave, Scott Frederick, Harry Yang
另请参阅: