Package com.gwtplatform.dispatch.rpc.shared.action

Examples of com.gwtplatform.dispatch.rpc.shared.action.TestResult


public class ActionTestBase {

    protected void testAction(Dispatch dispatch) throws ActionException, ServiceException {
        TestAction action = new TestAction(TestActionHandler.MESSAGE);
        TestResult result = dispatch.execute(action);
        Assert.assertTrue("Invalid action result! Processing error occured", result.getResult());
    }
View Full Code Here


    }

    @Override
    public TestResult execute(TestAction action, ExecutionContext context) throws ActionException {
        if (action.getTestMessage().equals(MESSAGE)) {
            return new TestResult(true);
        }
        return new TestResult(false);
    }
View Full Code Here

    }

    @Test
    public void testAction2() throws ActionException, ServiceException {
        TestAnnotatedAction action = new TestAnnotatedAction(TestAnnotatedActionHandler.MESSAGE);
        TestResult result = dispatchService.execute(action);
        Assert.assertTrue("Invalid action result! Processing error occured", result.getResult());
    }
View Full Code Here

    @Override
    public TestResult execute(TestAnnotatedAction action, ExecutionContext context) throws
            ActionException {
        if (action.getTestMessage().equals(MESSAGE)) {
            return new TestResult(true);
        }
        return new TestResult(false);
    }
View Full Code Here

TOP

Related Classes of com.gwtplatform.dispatch.rpc.shared.action.TestResult

Copyright © 2018 www.massapicom. 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.