use of org.springframework.boot.actuate.startup.StartupEndpoint.StartupResponse in project spring-boot by spring-projects.
the class StartupEndpointTests method bufferWithPostIsDrained.
@Test
void bufferWithPostIsDrained() {
BufferingApplicationStartup applicationStartup = new BufferingApplicationStartup(256);
testStartupEndpoint(applicationStartup, (startupEndpoint) -> {
StartupResponse startup = startupEndpoint.startup();
assertThat(startup.getTimeline().getEvents()).isNotEmpty();
assertThat(applicationStartup.getBufferedTimeline().getEvents()).isEmpty();
});
}
use of org.springframework.boot.actuate.startup.StartupEndpoint.StartupResponse in project spring-boot by spring-projects.
the class StartupEndpointTests method startupEventsAreFound.
@Test
void startupEventsAreFound() {
BufferingApplicationStartup applicationStartup = new BufferingApplicationStartup(256);
testStartupEndpoint(applicationStartup, (startupEndpoint) -> {
StartupResponse startup = startupEndpoint.startup();
assertThat(startup.getSpringBootVersion()).isEqualTo(SpringBootVersion.getVersion());
assertThat(startup.getTimeline().getStartTime()).isEqualTo(applicationStartup.getBufferedTimeline().getStartTime());
});
}
use of org.springframework.boot.actuate.startup.StartupEndpoint.StartupResponse in project spring-boot by spring-projects.
the class StartupEndpointTests method bufferWithGetIsNotDrained.
@Test
void bufferWithGetIsNotDrained() {
BufferingApplicationStartup applicationStartup = new BufferingApplicationStartup(256);
testStartupEndpoint(applicationStartup, (startupEndpoint) -> {
StartupResponse startup = startupEndpoint.startupSnapshot();
assertThat(startup.getTimeline().getEvents()).isNotEmpty();
assertThat(applicationStartup.getBufferedTimeline().getEvents()).isNotEmpty();
});
}
Aggregations