From c39df0565244fe042126238040153edb89556a31 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Thu, 24 Dec 2015 12:03:44 +0900 Subject: [PATCH] Polish test Closes gh-4837 --- ...tionWarningsApplicationContextInitializerTests.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-boot/src/test/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializerTests.java b/spring-boot/src/test/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializerTests.java index 32d8a02e609..ee6fd2197f9 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializerTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializerTests.java @@ -136,16 +136,16 @@ public class ConfigurationWarningsApplicationContextInitializerTests { @Override protected Check[] getChecks() { - return new Check[] { new TestComponentScanDefaultPackageCheck() }; + return new Check[] { new TestComponentScanPackageCheck() }; } } /** - * Testable ComponentScanDefaultPackageCheck that doesn't need to use the default - * package. + * Testable ComponentScanPackageCheck that doesn't need to use the default + * or {@code org.springframework} package. */ - static class TestComponentScanDefaultPackageCheck extends ComponentScanPackageCheck { + static class TestComponentScanPackageCheck extends ComponentScanPackageCheck { @Override protected Set getComponentScanningPackages( @@ -156,7 +156,7 @@ public class ConfigurationWarningsApplicationContextInitializerTests { if (scannedPackage.endsWith("dflt")) { result.add(""); } - if (scannedPackage.endsWith("orgspring")) { + else if (scannedPackage.endsWith("orgspring")) { result.add("org.springframework"); } else {