Examples of TaskHandlerActionContext


Examples of org.eurekastreams.commons.actions.context.TaskHandlerActionContext

     */
    private void invokeWithTaskHandlerAndPrincipal()
    {
        final PrincipalActionContext originalInnerContext = context.mock(PrincipalActionContext.class,
                "originalInnerContext");
        TaskHandlerActionContext originalOuterContext = new TaskHandlerActionContextImpl(originalInnerContext,
                userActionRequests);

        context.checking(new Expectations()
        {
            {
View Full Code Here

Examples of org.eurekastreams.commons.actions.context.TaskHandlerActionContext

     * Invokes the SUT with a TaskHandlerActionContext.
     */
    private void invokeWithTaskHandler()
    {
        final ActionContext originalInnerContext = context.mock(ActionContext.class, "originalInnerContext");
        TaskHandlerActionContext originalOuterContext = new TaskHandlerActionContextImpl(originalInnerContext,
                userActionRequests);

        Serializable result = sut.execute(originalOuterContext, parameters);
        assertSame(results, result);
    }
View Full Code Here

Examples of org.eurekastreams.commons.actions.context.TaskHandlerActionContext

     */
    @Test
    public void testExecuteTaskContextPrincipal()
    {
        final ActionContext parentInnerContext = new ServiceActionContext(otherParams, principal);
        final TaskHandlerActionContext parentContext = new TaskHandlerActionContextImpl(parentInnerContext,
                userActionRequests);
        mockery.checking(new Expectations()
        {
            {
                oneOf(executionTH).execute(with(new EasyMatcher<TaskHandlerActionContext<PrincipalActionContext>>()
View Full Code Here

Examples of org.eurekastreams.commons.actions.context.TaskHandlerActionContext

     */
    @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>>()
View Full Code Here

Examples of org.eurekastreams.commons.actions.context.TaskHandlerActionContext

        ActionContext innerContext = hasPrincipalContext ? new ServiceActionContext(params,
                ((PrincipalActionContext) inInnerContext).getPrincipal()) : new AsyncActionContext(params);

        if (taskHandlerExecution != null)
        {
            TaskHandlerActionContext outerContext = new TaskHandlerActionContextImpl<ActionContext>(innerContext,
                    inActionContext.getUserActionRequests());
            return taskHandlerExecution.execute(outerContext);
        }
        return plainExecution.execute(innerContext);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.