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