Package org.apache.derbyTesting.functionTests.tests.jdbcapi

Examples of org.apache.derbyTesting.functionTests.tests.jdbcapi.AssertEventCatcher.didConnectionErrorEventHappen()


            conn.createClob();
        } catch (SQLException e) {
                assertSQLState("08003", e);
        }
        assertFalse(aes12.didConnectionClosedEventHappen());
        assertTrue(aes12.didConnectionErrorEventHappen());
        aes12.resetState();         
        try {
            conn.getClientInfo();
        } catch (SQLException e) {
                assertSQLState("08003", e);
View Full Code Here


            conn.getClientInfo();
        } catch (SQLException e) {
                assertSQLState("08003", e);
        }
        assertFalse(aes12.didConnectionClosedEventHappen());
        assertTrue(aes12.didConnectionErrorEventHappen());
        aes12.resetState();         
        try {
            conn.getClientInfo("junk");
        } catch (SQLException e) {
                assertSQLState("08003", e);
View Full Code Here

            conn.getClientInfo("junk");
        } catch (SQLException e) {
                assertSQLState("08003", e);
        }
        assertFalse(aes12.didConnectionClosedEventHappen());
        assertTrue(aes12.didConnectionErrorEventHappen());
        aes12.resetState();         
        try {
            conn.setClientInfo(null);
        } catch (SQLException e) {
                assertSQLState("08003", e);
View Full Code Here

            conn.setClientInfo(null);
        } catch (SQLException e) {
                assertSQLState("08003", e);
        }
        assertFalse(aes12.didConnectionClosedEventHappen());
        assertTrue(aes12.didConnectionErrorEventHappen());
        aes12.resetState();         
        try {
            conn.setClientInfo("junk1", "junk2");
        } catch (SQLException e) {
                assertSQLState("08003", e);
View Full Code Here

            conn.setClientInfo("junk1", "junk2");
        } catch (SQLException e) {
                assertSQLState("08003", e);
        }
        assertFalse(aes12.didConnectionClosedEventHappen());
        assertTrue(aes12.didConnectionErrorEventHappen());
        aes12.resetState();         
        try {
            conn.isWrapperFor(this.getClass());
        } catch (SQLException e) {
                assertSQLState("08003", e);
View Full Code Here

        } catch (SQLException e) {
                assertSQLState("08003", e);
        }
        assertFalse(aes12.didConnectionClosedEventHappen());
        if (usingEmbedded())
          assertTrue(aes12.didConnectionErrorEventHappen());
        else
          //We do not make any call on underneath JDBC Connection
          //object for isWrapperFor and hence never get Connection
          //Error event
          assertFalse(aes12.didConnectionErrorEventHappen());
View Full Code Here

          assertTrue(aes12.didConnectionErrorEventHappen());
        else
          //We do not make any call on underneath JDBC Connection
          //object for isWrapperFor and hence never get Connection
          //Error event
          assertFalse(aes12.didConnectionErrorEventHappen());
        aes12.resetState();         
        try {
            conn.unwrap(this.getClass());
        } catch (SQLException e) {
            if (usingEmbedded())
View Full Code Here

              //and it can't do that
                assertSQLState("XJ128", e);
        }
      assertFalse(aes12.didConnectionClosedEventHappen());
        if (usingEmbedded())
          assertTrue(aes12.didConnectionErrorEventHappen());
        else
          //We do not make any call on underneath JDBC Connection
          //object for isWrapperFor and hence never get Connection
          //Error event
          assertFalse(aes12.didConnectionErrorEventHappen());
View Full Code Here

          assertTrue(aes12.didConnectionErrorEventHappen());
        else
          //We do not make any call on underneath JDBC Connection
          //object for isWrapperFor and hence never get Connection
          //Error event
          assertFalse(aes12.didConnectionErrorEventHappen());
        aes12.resetState();         
        try {
            conn.isValid(5);
        } catch (SQLException e) {
            assertSQLState("08003", e);
View Full Code Here

          assertTrue(aes12.didConnectionClosedEventHappen());
        else
          assertFalse(aes12.didConnectionClosedEventHappen());
      //As per the JDBC definition, an exception and hence an event is raised
      //for isValid only if the param value is illegal
      assertFalse(aes12.didConnectionErrorEventHappen());
        aes12.resetState();         
        if (usingEmbedded())
        {
            Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
        }else
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.