Search in sources :

Example 6 with OngoingRequest

use of com.spotify.apollo.request.OngoingRequest in project apollo by spotify.

the class OutcomeReportingOngoingRequestTest method setUp.

@Before
public void setUp() throws Exception {
    request = Request.forUri("http://floopity");
    OngoingRequest delegate = new FakeOngoingRequest();
    logger = new Logger();
    ongoingRequest = new OutcomeReportingOngoingRequest(delegate, logger);
}
Also used : OngoingRequest(com.spotify.apollo.request.OngoingRequest) Before(org.junit.Before)

Aggregations

OngoingRequest (com.spotify.apollo.request.OngoingRequest)6 Test (org.junit.Test)5 Service (com.spotify.apollo.core.Service)3 Before (org.junit.Before)3 Request (com.spotify.apollo.Request)2 RequestMetadata (com.spotify.apollo.RequestMetadata)2 Response (com.spotify.apollo.Response)2 RequestHandler (com.spotify.apollo.request.RequestHandler)2 IOException (java.io.IOException)2 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)2 AtomicReference (java.util.concurrent.atomic.AtomicReference)2 ByteString (okio.ByteString)2 Description (org.hamcrest.Description)2 Matcher (org.hamcrest.Matcher)2 TypeSafeMatcher (org.hamcrest.TypeSafeMatcher)2 Assert.assertThat (org.junit.Assert.assertThat)2 ImmutableMap (com.google.common.collect.ImmutableMap)1 AppInit (com.spotify.apollo.AppInit)1 Environment (com.spotify.apollo.Environment)1 Status (com.spotify.apollo.Status)1