use of org.edx.mobile.http.interceptor.OnlyIfCachedStrippingInterceptor in project edx-app-android by edx.
the class HttpBaseTestCase method setUp.
@Override
public void setUp() throws Exception {
server = new MockWebServer();
server.setDispatcher(new MockResponseDispatcher());
server.start();
okHttpClient = new OkHttpClient.Builder().dispatcher(new Dispatcher(new RoboExecutorService())).addInterceptor(new JsonMergePatchInterceptor()).addInterceptor(new OnlyIfCachedStrippingInterceptor()).build();
super.setUp();
}
Aggregations