[SPR-7960] Trimming profiles for good measure.

master
Sam Brannen 14 years ago
parent 24a97805ef
commit ff2a603f2f
  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

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

@ -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