use of com.google.mockwebserver.MockWebServer in project j2objc by google.
the class OldCookieHandlerTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
server = new MockWebServer();
}
use of com.google.mockwebserver.MockWebServer in project robospice by stephanenicolas.
the class SpiceArrayAdapterTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
cacheFile = new File(getContext().getCacheDir(), "Foo");
cacheFile.delete();
mockWebServer = new MockWebServer();
spiceManager = new BitmapSpiceManagerUnderTest();
spiceManager.start(getContext());
data = new ArrayList<DataUnderTest>();
data1 = new DataUnderTest();
data1.setFoo("data1");
data1.setImageUrl("data1.png");
data2 = new DataUnderTest();
data2.setFoo("data2");
data2.setImageUrl("data2.png");
data.add(data1);
data.add(data2);
adapter = new SpiceArrayAdapterUnderTest(getContext(), spiceManager, data);
}
use of com.google.mockwebserver.MockWebServer in project robospice by stephanenicolas.
the class SimpleTextRequestTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
mockWebServer = new MockWebServer();
}
use of com.google.mockwebserver.MockWebServer in project robospice by stephanenicolas.
the class SmallBinaryRequestTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
mockWebServer = new MockWebServer();
}
use of com.google.mockwebserver.MockWebServer in project robospice by stephanenicolas.
the class BigBinaryRequestTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
mockWebServer = new MockWebServer();
cacheFile = new File(getContext().getCacheDir(), "test");
cacheFile.delete();
}
Aggregations