@Test public void testExecute() { sut = new DeleteFromSearchIndexExecution(deleteFromSearchIndexDAO); final DeleteFromSearchIndexRequest params = new DeleteFromSearchIndexRequest(String.class, new ArrayList<Long>()); context.checking(new Expectations() { { allowing(actionContext).getParams(); will(returnValue(params)); allowing(deleteFromSearchIndexDAO).execute(params); } }); sut.execute(actionContext); context.assertIsSatisfied(); }
@Override public Boolean execute(final ActionContext inActionContext) { deleteFromSearchIndexDAO.execute((DeleteFromSearchIndexRequest) inActionContext.getParams()); return Boolean.TRUE; }
DeleteFromSearchIndexExecution implements ExecutionStrategy<ActionContext> { @Override public Boolean execute(final ActionContext inActionContext) { deleteFromSearchIndexDAO.execute((DeleteFromSearchIndexRequest) inActionContext.getParams()); return Boolean.TRUE; } }
DeleteFromSearchIndexExecution implements ExecutionStrategy<ActionContext> { @Override public Boolean execute(final ActionContext inActionContext) { deleteFromSearchIndexDAO.execute((DeleteFromSearchIndexRequest) inActionContext.getParams()); return Boolean.TRUE; } DeleteFromSearchIndexExecution(final DeleteFromSearchIndex inDeleteFromSearchIndexDAO); }
DeleteFromSearchIndexExecution implements ExecutionStrategy<ActionContext> { @Override public Boolean execute(final ActionContext inActionContext) { deleteFromSearchIndexDAO.execute((DeleteFromSearchIndexRequest) inActionContext.getParams()); return Boolean.TRUE; } DeleteFromSearchIndexExecution(final DeleteFromSearchIndex inDeleteFromSearchIndexDAO); @Override Boolean execute(final ActionContext inActionContext); }
DeleteFromSearchIndexExecution implements ExecutionStrategy<ActionContext> { @Override public Boolean execute(final ActionContext inActionContext) { deleteFromSearchIndexDAO.execute((DeleteFromSearchIndexRequest) inActionContext.getParams()); return Boolean.TRUE; } DeleteFromSearchIndexExecution(final DeleteFromSearchIndex inDeleteFromSearchIndexDAO); @Override Boolean execute(final ActionContext inActionContext);  }