Browse Source

Merge pull request #21117 from dreis2211

* pr/21117:
  Remove unused method

Closes gh-21117
pull/21130/head
Stephane Nicoll 6 years ago
parent
commit
83131629ca
  1. 9
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java

9
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java

@ -975,15 +975,6 @@ class SpringApplicationTests { @@ -975,15 +975,6 @@ class SpringApplicationTests {
verifyNoMoreInteractions(listener);
}
@SuppressWarnings("unchecked")
private void verifyRegisteredListenerFailedFromContextEvents() {
ApplicationListener<ApplicationEvent> 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);

Loading…
Cancel
Save