From 54f319acd5a4590cfd54919a8d247e45c1293b5e Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Sat, 25 Apr 2020 08:10:48 +0200 Subject: [PATCH] Remove unused method See gh-21117 --- .../org/springframework/boot/SpringApplicationTests.java | 9 --------- 1 file changed, 9 deletions(-) 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 6353a44810d..d67da1606c6 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);