Examples of SQLNonTransientException


Examples of java.sql.SQLNonTransientException

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