use of com.spotify.apollo.request.RequestRunnableFactory in project apollo by spotify.
the class RequestLoggingDecoratorTest method collectLoggingEventsForRequest.
private List<LoggingEvent> collectLoggingEventsForRequest(OngoingRequest ongoingRequest) {
RequestRunnableFactory decorated = decorator.apply(delegateFactory);
decorated.create(ongoingRequest).run(EMPTY_CONTINUATION);
return testLogger.getLoggingEvents().stream().filter(event -> event.getLevel() == Level.INFO).collect(Collectors.toList());
}
Aggregations