Browse Source

[SPR-7960] Trimming profiles for good measure.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4400 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/merge
Sam Brannen 15 years ago
parent
commit
b6a38353ba
  1. 2
      org.springframework.test/src/main/java/org/springframework/test/context/ContextLoaderUtils.java
  2. 2
      org.springframework.test/src/test/java/org/springframework/test/context/ContextLoaderUtilsTests.java

2
org.springframework.test/src/main/java/org/springframework/test/context/ContextLoaderUtils.java

@ -270,7 +270,7 @@ abstract class ContextLoaderUtils { @@ -270,7 +270,7 @@ abstract class ContextLoaderUtils {
for (String profile : profiles) {
if (StringUtils.hasText(profile)) {
activeProfiles.add(profile);
activeProfiles.add(profile.trim());
}
}

2
org.springframework.test/src/test/java/org/springframework/test/context/ContextLoaderUtilsTests.java

@ -116,7 +116,7 @@ public class ContextLoaderUtilsTests { @@ -116,7 +116,7 @@ public class ContextLoaderUtilsTests {
private static class EmptyProfiles {
}
@ActiveProfiles({ "foo", "bar", "foo", "bar", "baz" })
@ActiveProfiles({ "foo", "bar", " foo", "bar ", "baz" })
private static class DuplicatedProfiles {
}

Loading…
Cancel
Save