Search in sources :

Example 1 with MockResponseDelivery

use of com.android.volley.mock.MockResponseDelivery 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();
}
Also used : MockResponseDelivery(com.android.volley.mock.MockResponseDelivery) WaitableQueue(com.android.volley.mock.WaitableQueue) MockRequest(com.android.volley.mock.MockRequest) MockCache(com.android.volley.mock.MockCache) Before(org.junit.Before)

Example 2 with MockResponseDelivery

use of com.android.volley.mock.MockResponseDelivery 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();
}
Also used : MockResponseDelivery(com.android.volley.mock.MockResponseDelivery) WaitableQueue(com.android.volley.mock.WaitableQueue) MockNetwork(com.android.volley.mock.MockNetwork) MockRequest(com.android.volley.mock.MockRequest) MockCache(com.android.volley.mock.MockCache) Before(org.junit.Before)

Example 3 with MockResponseDelivery

use of com.android.volley.mock.MockResponseDelivery 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();
}
Also used : MockResponseDelivery(com.android.volley.mock.MockResponseDelivery) WaitableQueue(com.android.volley.mock.WaitableQueue) MockRequest(com.android.volley.mock.MockRequest) MockCache(com.android.volley.mock.MockCache) Before(org.junit.Before)

Example 4 with MockResponseDelivery

use of com.android.volley.mock.MockResponseDelivery 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();
}
Also used : MockResponseDelivery(com.android.volley.mock.MockResponseDelivery) WaitableQueue(com.android.volley.mock.WaitableQueue) MockNetwork(com.android.volley.mock.MockNetwork) MockRequest(com.android.volley.mock.MockRequest) MockCache(com.android.volley.mock.MockCache) Before(org.junit.Before)

Example 5 with MockResponseDelivery

use of com.android.volley.mock.MockResponseDelivery 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();
}
Also used : MockResponseDelivery(com.android.volley.mock.MockResponseDelivery) WaitableQueue(com.android.volley.mock.WaitableQueue) MockRequest(com.android.volley.mock.MockRequest) MockCache(com.android.volley.mock.MockCache) Before(org.junit.Before)

Aggregations

MockCache (com.android.volley.mock.MockCache)8 MockRequest (com.android.volley.mock.MockRequest)8 MockResponseDelivery (com.android.volley.mock.MockResponseDelivery)8 WaitableQueue (com.android.volley.mock.WaitableQueue)8 Before (org.junit.Before)6 MockNetwork (com.android.volley.mock.MockNetwork)4