|
|
@ -64,22 +64,22 @@ class EnvironmentPostProcessorApplicationListenerTests {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
void supporteEventTypeWhenApplicationEnvironmentPreparedEventReturnsTrue() {
|
|
|
|
void supportsEventTypeWhenApplicationEnvironmentPreparedEventReturnsTrue() {
|
|
|
|
assertThat(this.listener.supportsEventType(ApplicationEnvironmentPreparedEvent.class)).isTrue();
|
|
|
|
assertThat(this.listener.supportsEventType(ApplicationEnvironmentPreparedEvent.class)).isTrue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
void supporteEventTypeWhenApplicationPreparedEventReturnsTrue() {
|
|
|
|
void supportsEventTypeWhenApplicationPreparedEventReturnsTrue() {
|
|
|
|
assertThat(this.listener.supportsEventType(ApplicationPreparedEvent.class)).isTrue();
|
|
|
|
assertThat(this.listener.supportsEventType(ApplicationPreparedEvent.class)).isTrue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
void supporteEventTypeWhenApplicationFailedEventReturnsTrue() {
|
|
|
|
void supportsEventTypeWhenApplicationFailedEventReturnsTrue() {
|
|
|
|
assertThat(this.listener.supportsEventType(ApplicationFailedEvent.class)).isTrue();
|
|
|
|
assertThat(this.listener.supportsEventType(ApplicationFailedEvent.class)).isTrue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
void supporteEventTypeWhenOtherEventReturnsFalse() {
|
|
|
|
void supportsEventTypeWhenOtherEventReturnsFalse() {
|
|
|
|
assertThat(this.listener.supportsEventType(ApplicationStartingEvent.class)).isFalse();
|
|
|
|
assertThat(this.listener.supportsEventType(ApplicationStartingEvent.class)).isFalse();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|