use of org.springframework.test.context.MergedContextConfiguration in project spring-framework by spring-projects.
the class BootstrapTestUtilsMergedConfigTests method buildMergedConfigWithLocalAnnotationAndLocations.
@Test
public void buildMergedConfigWithLocalAnnotationAndLocations() {
Class<?> testClass = LocationsFoo.class;
MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass);
assertMergedConfig(mergedConfig, testClass, new String[] { "classpath:/foo.xml" }, EMPTY_CLASS_ARRAY, DelegatingSmartContextLoader.class);
}
use of org.springframework.test.context.MergedContextConfiguration in project spring-framework by spring-projects.
the class BootstrapTestUtilsMergedConfigTests method buildMergedConfigWithLocalAnnotationAndOverriddenContextLoaderAndLocations.
@Test
public void buildMergedConfigWithLocalAnnotationAndOverriddenContextLoaderAndLocations() {
Class<?> testClass = PropertiesLocationsFoo.class;
Class<? extends ContextLoader> expectedContextLoaderClass = GenericPropertiesContextLoader.class;
MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass);
assertMergedConfig(mergedConfig, testClass, new String[] { "classpath:/foo.properties" }, EMPTY_CLASS_ARRAY, expectedContextLoaderClass);
}
use of org.springframework.test.context.MergedContextConfiguration in project spring-framework by spring-projects.
the class BootstrapTestUtilsMergedConfigTests method buildImplicitMergedConfigWithoutAnnotation.
@Test
public void buildImplicitMergedConfigWithoutAnnotation() {
Class<?> testClass = Enigma.class;
MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass);
assertMergedConfig(mergedConfig, testClass, EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, DelegatingSmartContextLoader.class);
}
use of org.springframework.test.context.MergedContextConfiguration in project spring-framework by spring-projects.
the class BootstrapTestUtilsMergedConfigTests method buildMergedConfigWithAnnotationsAndOverriddenLocations.
@Test
public void buildMergedConfigWithAnnotationsAndOverriddenLocations() {
Class<?> testClass = OverriddenLocationsBar.class;
String[] expectedLocations = new String[] { "/bar.xml" };
MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass);
assertMergedConfig(mergedConfig, testClass, expectedLocations, EMPTY_CLASS_ARRAY, AnnotationConfigContextLoader.class);
}
use of org.springframework.test.context.MergedContextConfiguration in project spring-framework by spring-projects.
the class BootstrapTestUtilsMergedConfigTests method buildMergedConfigWithMetaAnnotationAndClasses.
private void buildMergedConfigWithMetaAnnotationAndClasses(Class<?> testClass) {
MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass);
assertMergedConfig(mergedConfig, testClass, EMPTY_STRING_ARRAY, new Class<?>[] { FooConfig.class, BarConfig.class }, DelegatingSmartContextLoader.class);
}
Aggregations