@Test public void testApplyCacheControl(){ Response.ResponseBuilder response = mock(Response.ResponseBuilder.class); ProcessorWebUtils.applyCacheControl(response); verify(response).cacheControl(any(CacheControl.class)); }
static Response.ResponseBuilder applyCacheControl(Response.ResponseBuilder response) { CacheControl cacheControl = new CacheControl(); cacheControl.setPrivate(true); cacheControl.setNoCache(true); cacheControl.setNoStore(true); return response.cacheControl(cacheControl); }
ProcessorWebUtils { static Response.ResponseBuilder applyCacheControl(Response.ResponseBuilder response) { CacheControl cacheControl = new CacheControl(); cacheControl.setPrivate(true); cacheControl.setNoCache(true); cacheControl.setNoStore(true); return response.cacheControl(cacheControl); } }
ProcessorWebUtils { static Response.ResponseBuilder applyCacheControl(Response.ResponseBuilder response) { CacheControl cacheControl = new CacheControl(); cacheControl.setPrivate(true); cacheControl.setNoCache(true); cacheControl.setNoStore(true); return response.cacheControl(cacheControl); }  }
ProcessorWebUtils { static Response.ResponseBuilder applyCacheControl(Response.ResponseBuilder response) { CacheControl cacheControl = new CacheControl(); cacheControl.setPrivate(true); cacheControl.setNoCache(true); cacheControl.setNoStore(true); return response.cacheControl(cacheControl); }   }
ProcessorWebUtils { static Response.ResponseBuilder applyCacheControl(Response.ResponseBuilder response) { CacheControl cacheControl = new CacheControl(); cacheControl.setPrivate(true); cacheControl.setNoCache(true); cacheControl.setNoStore(true); return response.cacheControl(cacheControl); }    }