Examples of LocalCommitEvent


Examples of bitronix.tm.mock.events.LocalCommitEvent

        // Handle Connection.commit()
        doAnswer(new Answer() {
      public Object answer(InvocationOnMock invocation) throws Throwable {
        EventRecorder eventRecorder = EventRecorder.getEventRecorder(mockConnection);
        eventRecorder.addEvent(new LocalCommitEvent(mockConnection, new Exception()));
        return null;
      }
        }).doThrow(new SQLException("Transaction already commited")).when(mockConnection).commit();

        // Handle Connection.rollback()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.