Examples of innermostDelegateEquals()


Examples of org.apache.commons.dbcp.DelegatingConnection.innermostDelegateEquals()

        DelegatingConnection connectionB = (DelegatingConnection) newConnection();

        assertTrue(connectionA.equals(connectionB));
        assertTrue(connectionB.equals(connectionA));
        assertTrue(connectionA.innermostDelegateEquals(connectionB.getInnermostDelegate()));
        assertTrue(connectionB.innermostDelegateEquals(connectionA.getInnermostDelegate()));

        connectionA.close();
        connectionB.close();
    }
View Full Code Here

Examples of org.apache.commons.dbcp.DelegatingConnection.innermostDelegateEquals()

        // in a transaciton the connections should be equal
        assertTrue(connectionA.equals(connectionB));
        assertTrue(connectionB.equals(connectionA));
        assertTrue(connectionA.innermostDelegateEquals(connectionB.getInnermostDelegate()));
        assertTrue(connectionB.innermostDelegateEquals(connectionA.getInnermostDelegate()));

        transactionManager.commit();

        // use the connection so it adjusts to the completed transaction
        connectionA.getAutoCommit();
View Full Code Here

Examples of org.apache.commons.dbcp.DelegatingConnection.innermostDelegateEquals()

        // no there is no transaction so connections should not be equal
        assertFalse(connectionA.equals(connectionB));
        assertFalse(connectionB.equals(connectionA));
        assertFalse(connectionA.innermostDelegateEquals(connectionB.getInnermostDelegate()));
        assertFalse(connectionB.innermostDelegateEquals(connectionA.getInnermostDelegate()));

        transactionManager.begin();

        // use the connection so it adjusts to the new transaction
        connectionA.getAutoCommit();
View Full Code Here

Examples of org.apache.commons.dbcp.DelegatingConnection.innermostDelegateEquals()

        // back in a transaction so should be equal again
        assertTrue(connectionA.equals(connectionB));
        assertTrue(connectionB.equals(connectionA));
        assertTrue(connectionA.innermostDelegateEquals(connectionB.getInnermostDelegate()));
        assertTrue(connectionB.innermostDelegateEquals(connectionA.getInnermostDelegate()));

        connectionA.close();
        connectionB.close();
    }
View Full Code Here

Examples of org.apache.commons.dbcp.DelegatingConnection.innermostDelegateEquals()

        DelegatingConnection connectionB = (DelegatingConnection) newConnection();

        assertTrue(connectionA.equals(connectionB));
        assertTrue(connectionB.equals(connectionA));
        assertTrue(connectionA.innermostDelegateEquals(connectionB.getInnermostDelegate()));
        assertTrue(connectionB.innermostDelegateEquals(connectionA.getInnermostDelegate()));

        connectionA.close();
        connectionB.close();

        Connection connection = newConnection();
View Full Code Here

Examples of org.apache.commons.dbcp.DelegatingConnection.innermostDelegateEquals()

        DelegatingConnection connectionB = (DelegatingConnection) newConnection();

        assertFalse(connectionA.equals(connectionB));
        assertFalse(connectionB.equals(connectionA));
        assertFalse(connectionA.innermostDelegateEquals(connectionB.getInnermostDelegate()));
        assertFalse(connectionB.innermostDelegateEquals(connectionA.getInnermostDelegate()));

        connectionA.close();
        connectionB.close();
    }
View Full Code Here

Examples of org.apache.commons.dbcp.DelegatingConnection.innermostDelegateEquals()

        Connection inner = con.getInnermostDelegate();
        ds.setAccessToUnderlyingConnectionAllowed(false);
        DelegatingConnection con2 = new DelegatingConnection(inner);
        assertTrue(con2.equals(con));
        assertTrue(con.innermostDelegateEquals(con2.getInnermostDelegate()));
        assertTrue(con2.innermostDelegateEquals(inner));
        assertTrue(con.equals(con2));
    }

    /**
     * Factory to return non-delegating connections for DBCP-198 test
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.