Class AotTestContextInitializers
java.lang.Object
org.springframework.test.context.aot.AotTestContextInitializers
AotTestContextInitializers provides mappings from test classes to
 AOT-optimized context initializers.
 Intended solely for internal use within the framework.
If we are not running in AOT mode or if a test class is not supported in AOT mode, getContextInitializer(Class) and
 getContextInitializerClass(Class) will return null.
- Since:
 - 6.0
 - Author:
 - Sam Brannen
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetContextInitializer(Class<?> testClass) Get the AOTApplicationContextInitializerfor the specified test class.getContextInitializerClass(Class<?> testClass) Get the AOTApplicationContextInitializerClassfor the specified test class.booleanisSupportedTestClass(Class<?> testClass) Determine if the specified test class has an AOT-optimized application context initializer. 
- 
Constructor Details
- 
AotTestContextInitializers
public AotTestContextInitializers() 
 - 
 - 
Method Details
- 
isSupportedTestClass
Determine if the specified test class has an AOT-optimized application context initializer.If this method returns
true,getContextInitializer(Class)should not returnnull. - 
getContextInitializer
@Nullable public ApplicationContextInitializer<ConfigurableApplicationContext> getContextInitializer(Class<?> testClass) Get the AOTApplicationContextInitializerfor the specified test class.- Returns:
 - the AOT context initializer, or 
nullif there is no AOT context initializer for the specified test class - See Also:
 
 - 
getContextInitializerClass
@Nullable public Class<ApplicationContextInitializer<?>> getContextInitializerClass(Class<?> testClass) Get the AOTApplicationContextInitializerClassfor the specified test class.- Returns:
 - the AOT context initializer class, or 
nullif there is no AOT context initializer for the specified test class - See Also:
 
 
 -