use of com.android.volley.mock.WaitableQueue in project FastDev4Android by jiangqqlmj.
the class CacheDispatcherTest method setUp.
@Before
public void setUp() throws Exception {
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.WaitableQueue in project FastDev4Android by jiangqqlmj.
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();
}
use of com.android.volley.mock.WaitableQueue in project android-volley by mcxiaoke.
the class CacheDispatcherTest method setUp.
@Before
public void setUp() throws Exception {
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.WaitableQueue in project android-volley by mcxiaoke.
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();
}
use of com.android.volley.mock.WaitableQueue in project TaEmCasa by Dionen.
the class CacheDispatcherTest method setUp.
@Before
public void setUp() throws Exception {
mCacheQueue = new WaitableQueue();
mNetworkQueue = new WaitableQueue();
mCache = new MockCache();
mDelivery = new MockResponseDelivery();
mRequest = new MockRequest();
mDispatcher = new CacheDispatcher(mCacheQueue, mNetworkQueue, mCache, mDelivery);
mDispatcher.start();
}
Aggregations