@Test public void testEmptyKey() { QueueAsynchActionExecution sut = new QueueAsynchActionExecution(""); final List<UserActionRequest> list = new ArrayList<UserActionRequest>(); sut.execute(actionContext); assertEquals(0, list.size()); context.assertIsSatisfied(); }
@Override public Serializable execute(final TaskHandlerActionContext<ActionContext> inActionContext) { if (actionKey != null && !actionKey.isEmpty()) { inActionContext.getUserActionRequests().add(new UserActionRequest(actionKey, null, null)); } return null; }
QueueAsynchActionExecution implements TaskHandlerExecutionStrategy<ActionContext> { @Override public Serializable execute(final TaskHandlerActionContext<ActionContext> inActionContext) { if (actionKey != null && !actionKey.isEmpty()) { inActionContext.getUserActionRequests().add(new UserActionRequest(actionKey, null, null)); } return null; } }
QueueAsynchActionExecution implements TaskHandlerExecutionStrategy<ActionContext> { @Override public Serializable execute(final TaskHandlerActionContext<ActionContext> inActionContext) { if (actionKey != null && !actionKey.isEmpty()) { inActionContext.getUserActionRequests().add(new UserActionRequest(actionKey, null, null)); } return null; } QueueAsynchActionExecution(final String inActionKey); }
QueueAsynchActionExecution implements TaskHandlerExecutionStrategy<ActionContext> { @Override public Serializable execute(final TaskHandlerActionContext<ActionContext> inActionContext) { if (actionKey != null && !actionKey.isEmpty()) { inActionContext.getUserActionRequests().add(new UserActionRequest(actionKey, null, null)); } return null; } QueueAsynchActionExecution(final String inActionKey); @Override Serializable execute(final TaskHandlerActionContext<ActionContext> inActionContext); }
QueueAsynchActionExecution implements TaskHandlerExecutionStrategy<ActionContext> { @Override public Serializable execute(final TaskHandlerActionContext<ActionContext> inActionContext) { if (actionKey != null && !actionKey.isEmpty()) { inActionContext.getUserActionRequests().add(new UserActionRequest(actionKey, null, null)); } return null; } QueueAsynchActionExecution(final String inActionKey); @Override Serializable execute(final TaskHandlerActionContext<ActionContext> inActionContext);  }