Examples of SQLTimeoutException


Examples of java.sql.SQLTimeoutException

    /**
     * @test java.sql.SQLTimeoutException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_4() {
        SQLTimeoutException sQLTimeoutException = new SQLTimeoutException(
                "MYTESTSTRING", null, 0);
        assertNotNull(sQLTimeoutException);
        assertNull("The SQLState of SQLTimeoutException should be null",
                sQLTimeoutException.getSQLState());
        assertEquals(
                "The reason of SQLTimeoutException set and get should be equivalent",
                "MYTESTSTRING", sQLTimeoutException.getMessage());
        assertEquals("The error code of SQLTimeoutException should be 0",
                sQLTimeoutException.getErrorCode(), 0);
    }
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.