@Test public void testExecute() { sut = new DeleteCacheKeysExecution(cacheKeyDAO); final Set<String> params = new HashSet<String>(0); context.checking(new Expectations() { { allowing(actionContext).getParams(); will(returnValue(params)); allowing(cacheKeyDAO).execute(params); } }); sut.execute(actionContext); context.assertIsSatisfied(); }
@SuppressWarnings("unchecked") @Override public Boolean execute(final ActionContext inActionContext) { cacheKeyDAO.execute((Set<String>) inActionContext.getParams()); return Boolean.TRUE; }
DeleteCacheKeysExecution implements ExecutionStrategy<ActionContext> { @SuppressWarnings("unchecked") @Override public Boolean execute(final ActionContext inActionContext) { cacheKeyDAO.execute((Set<String>) inActionContext.getParams()); return Boolean.TRUE; } }
DeleteCacheKeysExecution implements ExecutionStrategy<ActionContext> { @SuppressWarnings("unchecked") @Override public Boolean execute(final ActionContext inActionContext) { cacheKeyDAO.execute((Set<String>) inActionContext.getParams()); return Boolean.TRUE; } DeleteCacheKeysExecution(final DeleteCacheKeys inCacheKeyDAO); }
DeleteCacheKeysExecution implements ExecutionStrategy<ActionContext> { @SuppressWarnings("unchecked") @Override public Boolean execute(final ActionContext inActionContext) { cacheKeyDAO.execute((Set<String>) inActionContext.getParams()); return Boolean.TRUE; } DeleteCacheKeysExecution(final DeleteCacheKeys inCacheKeyDAO); @SuppressWarnings("unchecked") @Override Boolean execute(final ActionContext inActionContext); }
DeleteCacheKeysExecution implements ExecutionStrategy<ActionContext> { @SuppressWarnings("unchecked") @Override public Boolean execute(final ActionContext inActionContext) { cacheKeyDAO.execute((Set<String>) inActionContext.getParams()); return Boolean.TRUE; } DeleteCacheKeysExecution(final DeleteCacheKeys inCacheKeyDAO); @SuppressWarnings("unchecked") @Override Boolean execute(final ActionContext inActionContext);  }