assertTrue("Expected returned", returned);
assertTrue("Expected not committed", !committed);
}
public void testTransactionShareableConnection() throws Exception {
TransactionContext transactionContext = transactionContextManager.newContainerTransactionContext();
ConnectionInfo connectionInfo = makeConnectionInfo();
transactionEnlistingInterceptor.getConnection(connectionInfo);
assertTrue("Expected started", started);
assertTrue("Expected not ended", !ended);
started = false;
transactionEnlistingInterceptor.returnConnection(connectionInfo, ConnectionReturnAction.RETURN_HANDLE);
assertTrue("Expected not started", !started);
assertTrue("Expected ended", ended);
assertTrue("Expected returned", returned);
transactionContext.commit();
assertTrue("Expected committed", committed);
}