Package org.apache.oozie.executor.jpa

Examples of org.apache.oozie.executor.jpa.CoordActionGetForStartJPAExecutor


        String actionId = new Date().getTime() + "-COORD-ActionStartCommand-C@1";
        String wfApp = "<start to='${someParam}' />";
        addRecordToActionTable(actionId, 1, wfApp);
        new CoordActionStartXCommand(actionId, "me", "mytoken", "myjob").call();
        final JPAService jpaService = Services.get().get(JPAService.class);
        CoordinatorActionBean action = jpaService.execute(new CoordActionGetForStartJPAExecutor(actionId));
        if (action.getStatus() == CoordinatorAction.Status.SUBMITTED) {
            fail("Expected status was FAILED due to incorrect XML element");
        }
        assertEquals(action.getErrorCode(), ErrorCode.E0701.toString());
        assertTrue(action.getErrorMessage().contains(
View Full Code Here


        String actionId = new Date().getTime() + "-COORD-ActionStartCommand-C@1";
        String wfApp = "<start to='${someParam}' />";
        addRecordToActionTable(actionId, 1, wfApp);
        new CoordActionStartXCommand(actionId, "me", "myapp", "myjob").call();
        final JPAService jpaService = Services.get().get(JPAService.class);
        CoordinatorActionBean action = jpaService.execute(new CoordActionGetForStartJPAExecutor(actionId));
        if (action.getStatus() == CoordinatorAction.Status.SUBMITTED) {
            fail("Expected status was FAILED due to incorrect XML element");
        }
        assertEquals(action.getErrorCode(), ErrorCode.E0701.toString());
        assertTrue(action.getErrorMessage().contains(
View Full Code Here

        String actionId = new Date().getTime() + "-COORD-ActionStartCommand-C@1";
        String wfApp = "<start to='${someParam}' />";
        addRecordToActionTable(actionId, 1, wfApp);
        new CoordActionStartXCommand(actionId, "me", "myapp", "myjob").call();
        final JPAService jpaService = Services.get().get(JPAService.class);
        CoordinatorActionBean action = jpaService.execute(new CoordActionGetForStartJPAExecutor(actionId));
        if (action.getStatus() == CoordinatorAction.Status.SUBMITTED) {
            fail("Expected status was FAILED due to incorrect XML element");
        }
        assertEquals(action.getErrorCode(), ErrorCode.E0701.toString());
        assertTrue(action.getErrorMessage().contains(
View Full Code Here

TOP

Related Classes of org.apache.oozie.executor.jpa.CoordActionGetForStartJPAExecutor

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.