Package org.jbpm.mock

Examples of org.jbpm.mock.Recorded


    Session session = persistenceService.getSession();

    assertNotNull(persistenceService.transaction);
    assertSame(session, persistenceService.session);
    Recorded recordedConnection = (Recorded) connection;
    List invocations = recordedConnection.getInvocations();
    assertNull(Invocation.getInvocation(invocations, "commit", 0));

    persistenceService.close();

    invocations = recordedConnection.getInvocations();
    assertNotNull(Invocation.getInvocation(invocations, "commit", 0));
    assertNull(Invocation.getInvocation(invocations, "close", 0));
  }
View Full Code Here


    Session session = persistenceService.getSession();
    persistenceService.setRollbackOnly();

    assertNotNull(persistenceService.transaction);
    assertSame(session, persistenceService.session);
    Recorded recordedConnection = (Recorded)connection;
    List invocations = recordedConnection.getInvocations();
    assertNull(Invocation.getInvocation(invocations, "commit", 0));
    assertNull(Invocation.getInvocation(invocations, "rollback", 0));

    persistenceService.close();

    invocations = recordedConnection.getInvocations();
    assertNull(Invocation.getInvocation(invocations, "commit", 0));
    assertNotNull(Invocation.getInvocation(invocations, "rollback", 0));
  }
View Full Code Here

TOP

Related Classes of org.jbpm.mock.Recorded

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.