Examples of MergedContextConfiguration


Examples of org.springframework.test.context.MergedContextConfiguration

  }

  @Test
  public void buildMergedConfigWithBareAnnotations() {
    Class<?> testClass = BareAnnotations.class;
    MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass);

    assertMergedConfig(
      mergedConfig,
      testClass,
      new String[] { "classpath:org/springframework/test/context/support/AbstractContextConfigurationUtilsTests$BareAnnotations-context.xml" },
View Full Code Here

Examples of org.springframework.test.context.MergedContextConfiguration

  }

  @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);
  }
View Full Code Here

Examples of org.springframework.test.context.MergedContextConfiguration

  }

  @Test
  public void buildMergedConfigWithMetaAnnotationAndLocations() {
    Class<?> testClass = MetaLocationsFoo.class;
    MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass);

    assertMergedConfig(mergedConfig, testClass, new String[] { "classpath:/foo.xml" }, EMPTY_CLASS_ARRAY,
      DelegatingSmartContextLoader.class);
  }
View Full Code Here

Examples of org.springframework.test.context.MergedContextConfiguration

    buildMergedConfigWithMetaAnnotationAndClasses(WorkingDog.class);
    buildMergedConfigWithMetaAnnotationAndClasses(GermanShepherd.class);
  }

  private void buildMergedConfigWithMetaAnnotationAndClasses(Class<?> testClass) {
    MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass);
    assertMergedConfig(mergedConfig, testClass, EMPTY_STRING_ARRAY, new Class<?>[] { FooConfig.class,
      BarConfig.class }, DelegatingSmartContextLoader.class);
  }
View Full Code Here

Examples of org.springframework.test.context.MergedContextConfiguration

  }

  @Test
  public void buildMergedConfigWithLocalAnnotationAndClasses() {
    Class<?> testClass = ClassesFoo.class;
    MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass);

    assertMergedConfig(mergedConfig, testClass, EMPTY_STRING_ARRAY, new Class<?>[] { FooConfig.class },
      DelegatingSmartContextLoader.class);
  }
View Full Code Here

Examples of org.springframework.test.context.MergedContextConfiguration

  @Test
  public void buildMergedConfigWithAtWebAppConfigurationWithAnnotationAndClassesOnSuperclass() {
    Class<?> webTestClass = WebClassesFoo.class;
    Class<?> standardTestClass = ClassesFoo.class;
    WebMergedContextConfiguration webMergedConfig = (WebMergedContextConfiguration) buildMergedContextConfiguration(webTestClass);
    MergedContextConfiguration standardMergedConfig = buildMergedContextConfiguration(standardTestClass);

    assertEquals(webMergedConfig, webMergedConfig);
    assertEquals(standardMergedConfig, standardMergedConfig);
    assertNotEquals(standardMergedConfig, webMergedConfig);
    assertNotEquals(webMergedConfig, standardMergedConfig);
View Full Code Here

Examples of org.springframework.test.context.MergedContextConfiguration

  @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);
  }
View Full Code Here

Examples of org.springframework.test.context.MergedContextConfiguration

  @Test
  public void buildMergedConfigWithLocalAnnotationAndOverriddenContextLoaderAndClasses() {
    Class<?> testClass = PropertiesClassesFoo.class;
    Class<? extends ContextLoader> expectedContextLoaderClass = GenericPropertiesContextLoader.class;
    MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass);

    assertMergedConfig(mergedConfig, testClass, EMPTY_STRING_ARRAY, new Class<?>[] { FooConfig.class },
      expectedContextLoaderClass);
  }
View Full Code Here

Examples of org.springframework.test.context.MergedContextConfiguration

  @Test
  public void buildMergedConfigWithLocalAndInheritedAnnotationsAndLocations() {
    Class<?> testClass = LocationsBar.class;
    String[] expectedLocations = new String[] { "/foo.xml", "/bar.xml" };
    MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass);

    assertMergedConfig(mergedConfig, testClass, expectedLocations, EMPTY_CLASS_ARRAY,
      AnnotationConfigContextLoader.class);
  }
View Full Code Here

Examples of org.springframework.test.context.MergedContextConfiguration

  @Test
  public void buildMergedConfigWithLocalAndInheritedAnnotationsAndClasses() {
    Class<?> testClass = ClassesBar.class;
    Class<?>[] expectedClasses = new Class<?>[] { FooConfig.class, BarConfig.class };
    MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass);

    assertMergedConfig(mergedConfig, testClass, EMPTY_STRING_ARRAY, expectedClasses,
      AnnotationConfigContextLoader.class);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.