* Test.
*/
@Test
public void testExecuteTaskContextNonPrincipal()
{
final ActionContext parentInnerContext = new AsyncActionContext(otherParams);
final TaskHandlerActionContext parentContext = new TaskHandlerActionContextImpl(parentInnerContext,
userActionRequests);
mockery.checking(new Expectations()
{
{
oneOf(executionTH).execute(with(new EasyMatcher<TaskHandlerActionContext<PrincipalActionContext>>()
{
@Override
protected boolean isMatch(final TaskHandlerActionContext<PrincipalActionContext> inTestObject)
{
PrincipalActionContext inner = inTestObject.getActionContext();
return inTestObject.getUserActionRequests() == userActionRequests
&& inner.getParams() == params && inner.getPrincipal() == null
&& inner.getState() != null && inner.getState() != parentInnerContext.getState();
}
}));
will(returnValue(result));
}
});