@Test public void testPerformAction() throws Exception { context.checking(new Expectations() { { allowing(actionContext).getParams(); will(returnValue(request)); oneOf(deleteActivityCacheUpdateDAO).execute(request); } }); sut.execute(actionContext); context.assertIsSatisfied(); }
@Override public Boolean execute(final ActionContext inActionContext) { return deleteActivityCacheUpdateDAO.execute((DeleteActivityCacheUpdateRequest) inActionContext.getParams()); }
DeleteActivityCacheUpdateExecution implements ExecutionStrategy<ActionContext> { @Override public Boolean execute(final ActionContext inActionContext) { return deleteActivityCacheUpdateDAO.execute((DeleteActivityCacheUpdateRequest) inActionContext.getParams()); } }
DeleteActivityCacheUpdateExecution implements ExecutionStrategy<ActionContext> { @Override public Boolean execute(final ActionContext inActionContext) { return deleteActivityCacheUpdateDAO.execute((DeleteActivityCacheUpdateRequest) inActionContext.getParams()); } DeleteActivityCacheUpdateExecution(final DeleteActivityCacheUpdate inDeleteActivityCacheUpdateDAO); }
DeleteActivityCacheUpdateExecution implements ExecutionStrategy<ActionContext> { @Override public Boolean execute(final ActionContext inActionContext) { return deleteActivityCacheUpdateDAO.execute((DeleteActivityCacheUpdateRequest) inActionContext.getParams()); } DeleteActivityCacheUpdateExecution(final DeleteActivityCacheUpdate inDeleteActivityCacheUpdateDAO); @Override Boolean execute(final ActionContext inActionContext); }
DeleteActivityCacheUpdateExecution implements ExecutionStrategy<ActionContext> { @Override public Boolean execute(final ActionContext inActionContext) { return deleteActivityCacheUpdateDAO.execute((DeleteActivityCacheUpdateRequest) inActionContext.getParams()); } DeleteActivityCacheUpdateExecution(final DeleteActivityCacheUpdate inDeleteActivityCacheUpdateDAO); @Override Boolean execute(final ActionContext inActionContext);  }