@Test @SuppressWarnings("unchecked") public void test() { context.checking(new Expectations() { { oneOf(refreshStrategy1).refresh(5L, 6L); oneOf(refreshStrategy2).refresh(5L, 6L); } }); sut.refresh(5L, 6L); context.assertIsSatisfied(); }
@Override public void refresh(final Request inRequest, final Response inResponse) { for (RefreshStrategy<Request, Response> strat : strategies) { strat.refresh(inRequest, inResponse); } }
MultiRefreshCacheRefreshStrategy implements RefreshStrategy<Request, Response> { @Override public void refresh(final Request inRequest, final Response inResponse) { for (RefreshStrategy<Request, Response> strat : strategies) { strat.refresh(inRequest, inResponse); } } }
MultiRefreshCacheRefreshStrategy implements RefreshStrategy<Request, Response> { @Override public void refresh(final Request inRequest, final Response inResponse) { for (RefreshStrategy<Request, Response> strat : strategies) { strat.refresh(inRequest, inResponse); } } MultiRefreshCacheRefreshStrategy(final List<RefreshStrategy<Request, Response>> inStrategies); }
MultiRefreshCacheRefreshStrategy implements RefreshStrategy<Request, Response> { @Override public void refresh(final Request inRequest, final Response inResponse) { for (RefreshStrategy<Request, Response> strat : strategies) { strat.refresh(inRequest, inResponse); } } MultiRefreshCacheRefreshStrategy(final List<RefreshStrategy<Request, Response>> inStrategies); @Override void refresh(final Request inRequest, final Response inResponse); }
MultiRefreshCacheRefreshStrategy implements RefreshStrategy<Request, Response> { @Override public void refresh(final Request inRequest, final Response inResponse) { for (RefreshStrategy<Request, Response> strat : strategies) { strat.refresh(inRequest, inResponse); } } MultiRefreshCacheRefreshStrategy(final List<RefreshStrategy<Request, Response>> inStrategies); @Override void refresh(final Request inRequest, final Response inResponse);  }