1 package org.jbpm.bpel.exe.state; 2 3 4 8 public class TermImplicitHandlerTest extends AbstractStateTestCase { 9 10 public ScopeState getState() { 11 return TerminatingState.TERMINATING_IMPLICITLY; 12 } 13 14 public void testChildrenCompensated() { 15 ((HandlingState)scope.getState()).childrenCompensated(scope); 16 17 assertEquals( EndedState.TERMINATED, scope.getState() ); 18 } 19 20 public void testChildrenCompensatedAtScope() { 21 TestInstance parent = createTestScope(root); 22 ((HandlingState)scope.getState()).childrenCompensated(scope); 23 24 assertEquals( EndedState.TERMINATED, scope.getState() ); 25 assertTrue( parent.childTerminated ); 26 } 27 28 public void testFaulted() { 29 scope.faulted(null); 30 assertEquals(EndedState.TERMINATED, scope.getState()); 31 } 32 33 public void testFaultedAtScope() { 34 TestInstance parent = createTestScope(root); 35 36 scope.faulted(null); 37 assertEquals(EndedState.TERMINATED, scope.getState()); 38 assertTrue(parent.childTerminated); 39 } 40 } 41 | Popular Tags |