File tree 1 file changed +4
-2
lines changed
src/test/java/com/wego/httpcache/services/impl 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,14 @@ public class TestAsyncHttpCachedServiceImpl {
45
45
private static long CACHING_TTL = 60 ;
46
46
@ Rule public WireMockRule wireMockRule = new WireMockRule (8089 );
47
47
48
+ @ Spy private AsyncHttpClient asyncHttpClient = new AsyncHttpClient ();
49
+
48
50
@ InjectMocks
49
- private AsyncHttpCacheService asyncHttpCacheService = new AsyncHttpCacheServiceImpl (CACHING_TTL );
51
+ private AsyncHttpCacheService asyncHttpCacheService =
52
+ new AsyncHttpCacheServiceImpl (asyncHttpClient , CACHING_TTL );
50
53
51
54
@ Mock private CachedResponseService cachedResponseService ;
52
55
@ Mock private Request request ;
53
- @ Spy private AsyncHttpClient asyncHttpClient = new AsyncHttpClient ();
54
56
55
57
@ Test
56
58
public void executeRequest_whenWasCached_getResponseFromCacheAndCallOnComplete ()
You can’t perform that action at this time.
0 commit comments