Merge pull request #4837 from izeye/20151224

* pr/4837:
  Polish test
This commit is contained in:
Stephane Nicoll 2015-12-24 07:44:52 +01:00
commit cdc91330f2
1 changed files with 5 additions and 5 deletions

View File

@ -136,16 +136,16 @@ public class ConfigurationWarningsApplicationContextInitializerTests {
@Override @Override
protected Check[] getChecks() { protected Check[] getChecks() {
return new Check[] { new TestComponentScanDefaultPackageCheck() }; return new Check[] { new TestComponentScanPackageCheck() };
} }
} }
/** /**
* Testable ComponentScanDefaultPackageCheck that doesn't need to use the default * Testable ComponentScanPackageCheck that doesn't need to use the default
* package. * or {@code org.springframework} package.
*/ */
static class TestComponentScanDefaultPackageCheck extends ComponentScanPackageCheck { static class TestComponentScanPackageCheck extends ComponentScanPackageCheck {
@Override @Override
protected Set<String> getComponentScanningPackages( protected Set<String> getComponentScanningPackages(
@ -156,7 +156,7 @@ public class ConfigurationWarningsApplicationContextInitializerTests {
if (scannedPackage.endsWith("dflt")) { if (scannedPackage.endsWith("dflt")) {
result.add(""); result.add("");
} }
if (scannedPackage.endsWith("orgspring")) { else if (scannedPackage.endsWith("orgspring")) {
result.add("org.springframework"); result.add("org.springframework");
} }
else { else {