@Test public void testExecuteBasicContextNonPrincipal() { final ActionContext parentContext = new AsyncActionContext(otherParams); mockery.checking(new Expectations() { { oneOf(execution).execute(with(new EasyMatcher<PrincipalActionContext>() { @Override protected boolean isMatch(final PrincipalActionContext inTestObject) { return inTestObject.getParams() == params && inTestObject.getPrincipal() == null && inTestObject.getState() != null && inTestObject.getState() != parentContext.getState(); } })); will(returnValue(result)); } }); assertSame(result, sut.execute(execution, params, parentContext)); mockery.assertIsSatisfied(); }
public Serializable execute(final ExecutionStrategy execution, final Serializable params, final Principal principal) { PrincipalActionContext context = new ServiceActionContext(params, principal); return execution.execute(context); }
InlineExecutionStrategyExecutor { public Serializable execute(final ExecutionStrategy execution, final Serializable params, final Principal principal) { PrincipalActionContext context = new ServiceActionContext(params, principal); return execution.execute(context); } }
InlineExecutionStrategyExecutor { public Serializable execute(final ExecutionStrategy execution, final Serializable params, final Principal principal) { PrincipalActionContext context = new ServiceActionContext(params, principal); return execution.execute(context); }  }
InlineExecutionStrategyExecutor { public Serializable execute(final ExecutionStrategy execution, final Serializable params, final Principal principal) { PrincipalActionContext context = new ServiceActionContext(params, principal); return execution.execute(context); }  Serializable execute(final ExecutionStrategy execution, final Serializable params, final Principal principal); Serializable execute(final ExecutionStrategy execution, final Serializable params,
            final ActionContext parentContext); Serializable execute(final TaskHandlerExecutionStrategy execution, final Serializable params,
            final Principal principal, final List<UserActionRequest> requests); Serializable execute(final TaskHandlerExecutionStrategy execution, final Serializable params,
            final TaskHandlerActionContext< ? extends ActionContext> parentContext); }
InlineExecutionStrategyExecutor { public Serializable execute(final ExecutionStrategy execution, final Serializable params, final Principal principal) { PrincipalActionContext context = new ServiceActionContext(params, principal); return execution.execute(context); }  Serializable execute(final ExecutionStrategy execution, final Serializable params, final Principal principal); Serializable execute(final ExecutionStrategy execution, final Serializable params,
            final ActionContext parentContext); Serializable execute(final TaskHandlerExecutionStrategy execution, final Serializable params,
            final Principal principal, final List<UserActionRequest> requests); Serializable execute(final TaskHandlerExecutionStrategy execution, final Serializable params,
            final TaskHandlerActionContext< ? extends ActionContext> parentContext);  }