diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java index 6353a44810..d67da1606c 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java @@ -975,15 +975,6 @@ class SpringApplicationTests { verifyNoMoreInteractions(listener); } - @SuppressWarnings("unchecked") - private void verifyRegisteredListenerFailedFromContextEvents() { - ApplicationListener listener = this.context.getBean("testApplicationListener", - ApplicationListener.class); - InOrder inOrder = Mockito.inOrder(listener); - inOrder.verify(listener).onApplicationEvent(isA(ApplicationFailedEvent.class)); - inOrder.verifyNoMoreInteractions(); - } - @Test void registerShutdownHookOff() { SpringApplication application = new SpringApplication(ExampleConfig.class);