Browse Source

Rename test classes previously related only to ContextLoaderUtils

pull/595/head
Sam Brannen 11 years ago
parent
commit
91c9bad12e
  1. 5
      spring-test/src/test/java/org/springframework/test/context/support/AbstractContextConfigurationUtilsTests.java
  2. 2
      spring-test/src/test/java/org/springframework/test/context/support/ActiveProfilesUtilsTests.java
  3. 5
      spring-test/src/test/java/org/springframework/test/context/support/BootstrapTestUtilsContextInitializerTests.java
  4. 4
      spring-test/src/test/java/org/springframework/test/context/support/BootstrapTestUtilsMergedConfigTests.java
  5. 2
      spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsConfigurationAttributesTests.java
  6. 2
      spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsContextHierarchyTests.java

5
spring-test/src/test/java/org/springframework/test/context/support/AbstractContextLoaderUtilsTests.java → spring-test/src/test/java/org/springframework/test/context/support/AbstractContextConfigurationUtilsTests.java

@ -41,12 +41,13 @@ import org.springframework.test.context.web.WebAppConfiguration; @@ -41,12 +41,13 @@ import org.springframework.test.context.web.WebAppConfiguration;
import static org.junit.Assert.*;
/**
* Abstract base class for tests involving {@link ContextLoaderUtils}.
* Abstract base class for tests involving {@link ContextLoaderUtils},
* {@link BootstrapTestUtils}, and {@link ActiveProfilesUtils}.
*
* @author Sam Brannen
* @since 3.1
*/
abstract class AbstractContextLoaderUtilsTests {
abstract class AbstractContextConfigurationUtilsTests {
static final Class<?>[] EMPTY_CLASS_ARRAY = new Class<?>[0];
static final String[] EMPTY_STRING_ARRAY = new String[0];

2
spring-test/src/test/java/org/springframework/test/context/support/ActiveProfilesUtilsTests.java

@ -39,7 +39,7 @@ import static org.springframework.test.context.support.ActiveProfilesUtils.*; @@ -39,7 +39,7 @@ import static org.springframework.test.context.support.ActiveProfilesUtils.*;
* @author Michail Nikolaev
* @since 3.1
*/
public class ActiveProfilesUtilsTests extends AbstractContextLoaderUtilsTests {
public class ActiveProfilesUtilsTests extends AbstractContextConfigurationUtilsTests {
private void assertResolvedProfiles(Class<?> testClass, String... expected) {
assertNotNull(testClass);

5
spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsContextInitializerTests.java → spring-test/src/test/java/org/springframework/test/context/support/BootstrapTestUtilsContextInitializerTests.java

@ -23,17 +23,18 @@ import org.junit.Test; @@ -23,17 +23,18 @@ import org.junit.Test;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.test.context.BootstrapTestUtils;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.MergedContextConfiguration;
import org.springframework.web.context.support.GenericWebApplicationContext;
/**
* Unit tests for {@link ContextLoaderUtils} involving {@link ApplicationContextInitializer}s.
* Unit tests for {@link BootstrapTestUtils} involving {@link ApplicationContextInitializer}s.
*
* @author Sam Brannen
* @since 3.1
*/
public class ContextLoaderUtilsContextInitializerTests extends AbstractContextLoaderUtilsTests {
public class BootstrapTestUtilsContextInitializerTests extends AbstractContextConfigurationUtilsTests {
@Test
public void buildMergedConfigWithLocalInitializer() {

4
spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsMergedConfigTests.java → spring-test/src/test/java/org/springframework/test/context/support/BootstrapTestUtilsMergedConfigTests.java

@ -31,12 +31,12 @@ import org.springframework.test.context.web.WebMergedContextConfiguration; @@ -31,12 +31,12 @@ import org.springframework.test.context.web.WebMergedContextConfiguration;
import static org.junit.Assert.*;
/**
* Unit tests for {@link ContextLoaderUtils} involving {@link MergedContextConfiguration}.
* Unit tests for {@link BootstrapTestUtils} involving {@link MergedContextConfiguration}.
*
* @author Sam Brannen
* @since 3.1
*/
public class ContextLoaderUtilsMergedConfigTests extends AbstractContextLoaderUtilsTests {
public class BootstrapTestUtilsMergedConfigTests extends AbstractContextConfigurationUtilsTests {
@Test
public void buildMergedConfigWithoutAnnotation() {

2
spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsConfigurationAttributesTests.java

@ -34,7 +34,7 @@ import static org.junit.Assert.*; @@ -34,7 +34,7 @@ import static org.junit.Assert.*;
* @author Sam Brannen
* @since 3.1
*/
public class ContextLoaderUtilsConfigurationAttributesTests extends AbstractContextLoaderUtilsTests {
public class ContextLoaderUtilsConfigurationAttributesTests extends AbstractContextConfigurationUtilsTests {
private void assertLocationsFooAttributes(ContextConfigurationAttributes attributes) {
assertAttributes(attributes, LocationsFoo.class, new String[] { "/foo.xml" }, EMPTY_CLASS_ARRAY,

2
spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsContextHierarchyTests.java

@ -42,7 +42,7 @@ import static org.junit.Assert.*; @@ -42,7 +42,7 @@ import static org.junit.Assert.*;
* @author Sam Brannen
* @since 3.2.2
*/
public class ContextLoaderUtilsContextHierarchyTests extends AbstractContextLoaderUtilsTests {
public class ContextLoaderUtilsContextHierarchyTests extends AbstractContextConfigurationUtilsTests {
private void debugConfigAttributes(List<ContextConfigurationAttributes> configAttributesList) {
// for (ContextConfigurationAttributes configAttributes : configAttributesList) {

Loading…
Cancel
Save