org.springframework.test.context.support.AnnotationConfigContextLoaderUtils Java Examples

The following examples show how to use org.springframework.test.context.support.AnnotationConfigContextLoaderUtils. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AnnotationConfigWebContextLoader.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Detect the default configuration classes for the supplied test class.
 * <p>The default implementation simply delegates to
 * {@link AnnotationConfigContextLoaderUtils#detectDefaultConfigurationClasses(Class)}.
 * @param declaringClass the test class that declared {@code @ContextConfiguration}
 * @return an array of default configuration classes, potentially empty but never {@code null}
 * @see AnnotationConfigContextLoaderUtils
 */
protected Class<?>[] detectDefaultConfigurationClasses(Class<?> declaringClass) {
	return AnnotationConfigContextLoaderUtils.detectDefaultConfigurationClasses(declaringClass);
}
 
Example #2
Source File: AnnotationConfigWebContextLoader.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Detect the default configuration classes for the supplied test class.
 * <p>The default implementation simply delegates to
 * {@link AnnotationConfigContextLoaderUtils#detectDefaultConfigurationClasses(Class)}.
 * @param declaringClass the test class that declared {@code @ContextConfiguration}
 * @return an array of default configuration classes, potentially empty but never {@code null}
 * @see AnnotationConfigContextLoaderUtils
 */
protected Class<?>[] detectDefaultConfigurationClasses(Class<?> declaringClass) {
	return AnnotationConfigContextLoaderUtils.detectDefaultConfigurationClasses(declaringClass);
}
 
Example #3
Source File: AnnotationConfigWebContextLoader.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Detect the default configuration classes for the supplied test class.
 *
 * <p>The default implementation simply delegates to
 * {@link AnnotationConfigContextLoaderUtils#detectDefaultConfigurationClasses(Class)}.
 *
 * @param declaringClass the test class that declared {@code @ContextConfiguration}
 * @return an array of default configuration classes, potentially empty but
 * never {@code null}
 * @see AnnotationConfigContextLoaderUtils
 */
protected Class<?>[] detectDefaultConfigurationClasses(Class<?> declaringClass) {
	return AnnotationConfigContextLoaderUtils.detectDefaultConfigurationClasses(declaringClass);
}