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

The following examples show how to use org.springframework.test.context.support.AnnotationConfigContextLoaderUtils. These examples are extracted from open source projects. 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
/**
 * 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
/**
 * 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
/**
 * 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);
}