use of com.android.volley.mock.MockResponseDelivery in project iosched by google.
the class CacheDispatcherTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
mCacheQueue = new WaitableQueue();
mNetworkQueue = new WaitableQueue();
mCache = new MockCache();
mDelivery = new MockResponseDelivery();
mRequest = new MockRequest();
mDispatcher = new CacheDispatcher(mCacheQueue, mNetworkQueue, mCache, mDelivery);
mDispatcher.start();
}
use of com.android.volley.mock.MockResponseDelivery in project iosched by google.
the class NetworkDispatcherTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
mDelivery = new MockResponseDelivery();
mNetworkQueue = new WaitableQueue();
mNetwork = new MockNetwork();
mCache = new MockCache();
mRequest = new MockRequest();
mDispatcher = new NetworkDispatcher(mNetworkQueue, mNetwork, mCache, mDelivery);
mDispatcher.start();
}
use of com.android.volley.mock.MockResponseDelivery in project TaEmCasa by Dionen.
the class NetworkDispatcherTest method setUp.
@Before
public void setUp() throws Exception {
mDelivery = new MockResponseDelivery();
mNetworkQueue = new WaitableQueue();
mNetwork = new MockNetwork();
mCache = new MockCache();
mRequest = new MockRequest();
mDispatcher = new NetworkDispatcher(mNetworkQueue, mNetwork, mCache, mDelivery);
mDispatcher.start();
}
Aggregations