Polishing

This commit is contained in:
Juergen Hoeller
2017-08-01 12:08:57 +02:00
parent 697d14a028
commit ca0983cd85
2 changed files with 7 additions and 5 deletions

View File

@@ -290,6 +290,7 @@ public class ConfigurationClassWithConditionTests {
@Never
@Import({ConfigurationNotCreated.class, RegistrarNotCreated.class, ImportSelectorNotCreated.class})
static class ImportsNotCreated {
static {
if (true) throw new RuntimeException();
}
@@ -297,12 +298,14 @@ public class ConfigurationClassWithConditionTests {
@Configuration
static class ConfigurationNotCreated {
static {
if (true) throw new RuntimeException();
}
}
static class RegistrarNotCreated implements ImportBeanDefinitionRegistrar {
static {
if (true) throw new RuntimeException();
}