use of com.octo.android.robospice.googlehttpclient.test.stub.GoogleHttpClientSpiceRequestStub in project robospice by stephanenicolas.
the class GoogleHttpClientSpiceServiceTest method test_addRequest_injects_request_factory.
public void test_addRequest_injects_request_factory() throws InterruptedException {
// given
spiceManager.start(getContext());
GoogleHttpClientSpiceRequestStub googleHttpClientSpiceRequest = new GoogleHttpClientSpiceRequestStub(Weather.class);
// when
spiceManager.execute(googleHttpClientSpiceRequest, new RequestListenerStub<Weather>());
googleHttpClientSpiceRequest.await(REQUEST_COMPLETION_TIMEOUT);
// test
assertNotNull(googleHttpClientSpiceRequest.getHttpRequestFactory());
}
Aggregations