/** * Test bounce of inner connection. * * @throws IllegalArgumentException * @throws SecurityException * @throws IllegalAccessException * @throws InvocationTargetException */ @Test public void testStandardMethods() throws IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException { Set<String> skipTests = new HashSet<String>(); skipTests.add("close"); skipTests.add("getConnection"); skipTests.add("markPossiblyBroken"); skipTests.add("trackStatement"); skipTests.add("checkClosed"); skipTests.add("isClosed"); skipTests.add("internalClose"); skipTests.add("prepareCall"); skipTests.add("prepareStatement"); skipTests.add("setClientInfo"); skipTests.add("getConnectionLastUsed"); skipTests.add("setConnectionLastUsed"); skipTests.add("getConnectionLastReset"); skipTests.add("setConnectionLastReset"); skipTests.add("isPossiblyBroken"); skipTests.add("getOriginatingPartition"); skipTests.add("setOriginatingPartition"); skipTests.add("renewConnection"); skipTests.add("clearStatementCaches"); skipTests.add("obtainInternalConnection"); skipTests.add("sendInitSQL"); skipTests.add("$VRi"); // this only comes into play when code coverage is started. Eclemma bug? CommonTestUtils.testStatementBounceMethod(mockConnection, testClass, skipTests, mockConnection); }