use of org.cloudfoundry.operations.applications.ApplicationEvent in project cf-java-client by cloudfoundry.
the class ApplicationsTest method getEvents.
@Test
public void getEvents() throws IOException {
String applicationName = this.nameFactory.getApplicationName();
createApplication(this.cloudFoundryOperations, new ClassPathResource("test-application.zip").getFile().toPath(), applicationName, true).thenMany(this.cloudFoundryOperations.applications().getEvents(GetApplicationEventsRequest.builder().name(applicationName).build()).next()).map(ApplicationEvent::getEvent).as(StepVerifier::create).expectNext("audit.app.update").expectComplete().verify(Duration.ofMinutes(5));
}
Aggregations