|
|
@ -1198,9 +1198,7 @@ class SpringApplicationTests {
|
|
|
|
.filter((invocation) -> invocation.getMethod().toString().contains("start(")).count();
|
|
|
|
.filter((invocation) -> invocation.getMethod().toString().contains("start(")).count();
|
|
|
|
long endCount = mockingDetails(startupStep).getInvocations().stream()
|
|
|
|
long endCount = mockingDetails(startupStep).getInvocations().stream()
|
|
|
|
.filter((invocation) -> invocation.getMethod().toString().contains("end(")).count();
|
|
|
|
.filter((invocation) -> invocation.getMethod().toString().contains("end(")).count();
|
|
|
|
assertThat(startCount).isEqualTo(endCount + 1); // Will be same after
|
|
|
|
assertThat(startCount).isEqualTo(endCount);
|
|
|
|
// spring-framework #25572 is
|
|
|
|
|
|
|
|
// fixed
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private <S extends AvailabilityState> ArgumentMatcher<ApplicationEvent> isAvailabilityChangeEventWithState(
|
|
|
|
private <S extends AvailabilityState> ArgumentMatcher<ApplicationEvent> isAvailabilityChangeEventWithState(
|
|
|
|