257258259260261262263264265266267
replay(); Dispatcher d = new AssetDispatcher(streamer, aliasManager, cache, "1.2.3", null); assertTrue(d.dispatch(request, response)); verify(); } @Test
288289290291292293294295296297
replay(); Dispatcher d = new AssetDispatcher(streamer, aliasManager, cache, "1.2.3", null); assertTrue(d.dispatch(request, response)); verify(); } }
4546474849505152535455
replay(); Dispatcher d = new AssetDispatcher(null, null, null); assertFalse(d.dispatch(request, null)); verify(); } @Test
7475767778798081828384
replay(); Dispatcher d = new AssetDispatcher(streamer, cache, locator); assertTrue(d.dispatch(request, response)); verify(); } @Test
104105106107108109110111112113114
136137138139140141142143144145146
170171172173174175176177178179180
replay(); Dispatcher d = new AssetDispatcher(streamer, cache, locator); assertTrue(d.dispatch(request, response)); verify(); } protected final void train_getDigest(ResourceCache cache, Resource resource, String digest)
202203204205206207208209210211212
234235236237238239240241242243244
264265266267268269270271272273274