assertEquals("Unexpected first history step", 1, ((Step) history.get(0)).getStepId()); assertEquals("Unexpected second history step", 2, ((Step) history.get(1)).getStepId());
assertEquals("Unexpected first history step", 2, ((Step) history.get(0)).getStepId()); assertEquals("Unexpected second history step", 1, ((Step) history.get(1)).getStepId());
    public void testExecTwoActions() throws Exception {        long id = workflow.initialize(getClass().getResource("/samples/auto3.xml").toString(), 100, null);        List currentSteps = workflow.getCurrentSteps(id);        assertEquals("Unexpected number of current steps", 1, currentSteps.size());        assertEquals("Unexpected current step", 3, ((Step) currentSteps.get(0)).getStepId());        List history = workflow.getHistorySteps(id);        assertEquals("Expected to have two history steps", 2, history.size());        assertEquals("Unexpected first history step", 1, ((Step) history.get(0)).getStepId());        assertEquals("Unexpected second history step", 2, ((Step) history.get(1)).getStepId());    }