类org.springframework.test.context.support.AnnotationConfigContextLoaderUtils源码实例Demo

下面列出了怎么用org.springframework.test.context.support.AnnotationConfigContextLoaderUtils的API类实例代码及写法,或者点击链接到github查看源代码。

/**
 * 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);
}
 
/**
 * 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);
}
 
/**
 * 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);
}
 
 同包方法