|
44 | 44 | import org.springframework.aot.AotDetector;
|
45 | 45 | import org.springframework.aot.hint.RuntimeHints;
|
46 | 46 | import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
|
47 |
| -import org.springframework.beans.CachedIntrospectionResults; |
48 | 47 | import org.springframework.beans.factory.BeanCreationException;
|
49 | 48 | import org.springframework.beans.factory.BeanCurrentlyInCreationException;
|
50 | 49 | import org.springframework.beans.factory.ObjectProvider;
|
@@ -194,7 +193,6 @@ void cleanUp() {
|
194 | 193 | this.context.close();
|
195 | 194 | }
|
196 | 195 | System.clearProperty("spring.main.banner-mode");
|
197 |
| - System.clearProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME); |
198 | 196 | SpringApplicationShutdownHookInstance.reset();
|
199 | 197 | }
|
200 | 198 |
|
@@ -280,25 +278,6 @@ void enableBannerInLogViaProperty(CapturedOutput output) {
|
280 | 278 | assertThat(output).contains("o.s.b.SpringApplication");
|
281 | 279 | }
|
282 | 280 |
|
283 |
| - @Test |
284 |
| - void setIgnoreBeanInfoPropertyByDefault(CapturedOutput output) { |
285 |
| - SpringApplication application = new SpringApplication(ExampleConfig.class); |
286 |
| - application.setWebApplicationType(WebApplicationType.NONE); |
287 |
| - this.context = application.run(); |
288 |
| - String property = System.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME); |
289 |
| - assertThat(property).isEqualTo("true"); |
290 |
| - } |
291 |
| - |
292 |
| - @Test |
293 |
| - void disableIgnoreBeanInfoProperty() { |
294 |
| - System.setProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME, "false"); |
295 |
| - SpringApplication application = new SpringApplication(ExampleConfig.class); |
296 |
| - application.setWebApplicationType(WebApplicationType.NONE); |
297 |
| - this.context = application.run(); |
298 |
| - String property = System.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME); |
299 |
| - assertThat(property).isEqualTo("false"); |
300 |
| - } |
301 |
| - |
302 | 281 | @Test
|
303 | 282 | void triggersConfigFileApplicationListenerBeforeBinding() {
|
304 | 283 | SpringApplication application = new SpringApplication(ExampleConfig.class);
|
|
0 commit comments