@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(); }
@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(); }
@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(); }
@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(); }