Fix failing tests

See gh-6897
This commit is contained in:
Phillip Webb
2016-09-15 17:16:26 -07:00
parent 5f7897ba41
commit 25c4e261e9
2 changed files with 4 additions and 3 deletions

View File

@@ -67,7 +67,8 @@ final class SpringBootConfigurationFinder {
Set<BeanDefinition> components = this.scanner.findCandidateComponents(source);
if (!components.isEmpty()) {
Assert.state(components.size() == 1,
"Found multiple @SpringBootConfiguration annotated classes");
"Found multiple @SpringBootConfiguration annotated classes "
+ components);
return ClassUtils.resolveClassName(
components.iterator().next().getBeanClassName(), null);
}