Package java.sql

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


    /**
     * @test java.sql.SQLNonTransientException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_7() {
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(
                null, "MYTESTSTRING", 0);
        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 0",
                sQLNonTransientException.getErrorCode(), 0);
    }
View Full Code Here

    /**
     * @test java.sql.SQLNonTransientException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_8() {
        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

    /**
     * @test java.sql.SQLNonTransientException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_9() {
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(
                null, null, 1);
        assertNotNull(sQLNonTransientException);
        assertNull("The SQLState of SQLNonTransientException should be null",
                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

    /**
     * @test java.sql.SQLNonTransientException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_10() {
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(
                null, null, 0);
        assertNotNull(sQLNonTransientException);
        assertNull("The SQLState of SQLNonTransientException should be null",
                sQLNonTransientException.getSQLState());
        assertNull("The reason of SQLNonTransientException should be null",
                sQLNonTransientException.getMessage());
        assertEquals("The error code of SQLNonTransientException should be 0",
                sQLNonTransientException.getErrorCode(), 0);
    }
View Full Code Here

    /**
     * @test java.sql.SQLNonTransientException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_11() {
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(
                null, null, -1);
        assertNotNull(sQLNonTransientException);
        assertNull("The SQLState of SQLNonTransientException should be null",
                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

    /**
     * @test java.sql.SQLNonTransientException(String, String, int, Throwable)
     */
    public void test_Constructor_LStringLStringILThrowable_22() {
        Throwable cause = new Exception("MYTHROWABLE");
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(
                null, null, -1, cause);
        assertNotNull(sQLNonTransientException);
        assertNull("The SQLState of SQLNonTransientException should be null",
                sQLNonTransientException.getSQLState());
        assertNull("The reason of SQLNonTransientException should be null",
                sQLNonTransientException.getMessage());
        assertEquals("The error code of SQLNonTransientException should be -1",
                sQLNonTransientException.getErrorCode(), -1);
        assertEquals(
                "The cause of SQLNonTransientException set and get should be equivalent",
                cause, sQLNonTransientException.getCause());
    }
View Full Code Here

    /**
     * @test java.sql.SQLNonTransientException(String, String, int, Throwable)
     */
    public void test_Constructor_LStringLStringILThrowable_23() {
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(
                null, null, -1, null);
        assertNotNull(sQLNonTransientException);
        assertNull("The SQLState of SQLNonTransientException should be null",
                sQLNonTransientException.getSQLState());
        assertNull("The reason of SQLNonTransientException should be null",
                sQLNonTransientException.getMessage());
        assertEquals("The error code of SQLNonTransientException should be -1",
                sQLNonTransientException.getErrorCode(), -1);
        assertNull("The cause of SQLNonTransientException should be null",
                sQLNonTransientException.getCause());
    }
View Full Code Here

    /**
     * @test java.sql.SQLNonTransientException()
     */
    public void test_Constructor() {
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException();
        assertNotNull(sQLNonTransientException);
        assertNull("The SQLState of SQLNonTransientException should be null",
                sQLNonTransientException.getSQLState());
        assertNull("The reason of SQLNonTransientException should be null",
                sQLNonTransientException.getMessage());
        assertEquals("The error code of SQLNonTransientException should be 0",
                sQLNonTransientException.getErrorCode(), 0);
    }
View Full Code Here

TOP

Related Classes of java.sql.SQLNonTransientException

Copyright © 2018 www.massapicom. 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.