DummyTransactionListener listener = new DummyTransactionListener();
txn.registerListener(listener);
/* Check that registering twice has no effect. */
txn.registerListener(listener);
txn.abort(abortXcp);
listener.assertCalled(false, CalledAfter.ABORT);
}
@Test
public void testRegisterListenerAbortAfterThrows() throws Exception {
RuntimeException exception = new RuntimeException();