Package java.sql

Examples of java.sql.SQLNonTransientConnectionException


    /**
     * @test java.sql.SQLNonTransientConnectionException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_2() {
        SQLNonTransientConnectionException sQLNonTransientConnectionException = new SQLNonTransientConnectionException(
                "MYTESTSTRING1", "MYTESTSTRING2", -1);
        assertNotNull(sQLNonTransientConnectionException);
        assertEquals(
                "The SQLState of SQLNonTransientConnectionException set and get should be equivalent",
                "MYTESTSTRING2", sQLNonTransientConnectionException
                        .getSQLState());
        assertEquals(
                "The reason of SQLNonTransientConnectionException set and get should be equivalent",
                "MYTESTSTRING1", sQLNonTransientConnectionException
                        .getMessage());
        assertEquals(
                "The error code of SQLNonTransientConnectionException should be -1",
                sQLNonTransientConnectionException.getErrorCode(), -1);
    }
View Full Code Here


    /**
     * @test java.sql.SQLNonTransientConnectionException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_3() {
        SQLNonTransientConnectionException sQLNonTransientConnectionException = new SQLNonTransientConnectionException(
                "MYTESTSTRING", null, 1);
        assertNotNull(sQLNonTransientConnectionException);
        assertNull(
                "The SQLState of SQLNonTransientConnectionException should be null",
                sQLNonTransientConnectionException.getSQLState());
        assertEquals(
                "The reason of SQLNonTransientConnectionException set and get should be equivalent",
                "MYTESTSTRING", sQLNonTransientConnectionException.getMessage());
        assertEquals(
                "The error code of SQLNonTransientConnectionException should be 1",
                sQLNonTransientConnectionException.getErrorCode(), 1);
    }
View Full Code Here

    /**
     * @test java.sql.SQLNonTransientConnectionException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_4() {
        SQLNonTransientConnectionException sQLNonTransientConnectionException = new SQLNonTransientConnectionException(
                "MYTESTSTRING", null, 0);
        assertNotNull(sQLNonTransientConnectionException);
        assertNull(
                "The SQLState of SQLNonTransientConnectionException should be null",
                sQLNonTransientConnectionException.getSQLState());
        assertEquals(
                "The reason of SQLNonTransientConnectionException set and get should be equivalent",
                "MYTESTSTRING", sQLNonTransientConnectionException.getMessage());
        assertEquals(
                "The error code of SQLNonTransientConnectionException should be 0",
                sQLNonTransientConnectionException.getErrorCode(), 0);
    }
View Full Code Here

    /**
     * @test java.sql.SQLNonTransientConnectionException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_5() {
        SQLNonTransientConnectionException sQLNonTransientConnectionException = new SQLNonTransientConnectionException(
                "MYTESTSTRING", null, -1);
        assertNotNull(sQLNonTransientConnectionException);
        assertNull(
                "The SQLState of SQLNonTransientConnectionException should be null",
                sQLNonTransientConnectionException.getSQLState());
        assertEquals(
                "The reason of SQLNonTransientConnectionException set and get should be equivalent",
                "MYTESTSTRING", sQLNonTransientConnectionException.getMessage());
        assertEquals(
                "The error code of SQLNonTransientConnectionException should be -1",
                sQLNonTransientConnectionException.getErrorCode(), -1);
    }
View Full Code Here

    /**
     * @test java.sql.SQLNonTransientConnectionException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_6() {
        SQLNonTransientConnectionException sQLNonTransientConnectionException = new SQLNonTransientConnectionException(
                null, "MYTESTSTRING", 1);
        assertNotNull(sQLNonTransientConnectionException);
        assertEquals(
                "The SQLState of SQLNonTransientConnectionException set and get should be equivalent",
                "MYTESTSTRING", sQLNonTransientConnectionException
                        .getSQLState());
        assertNull(
                "The reason of SQLNonTransientConnectionException should be null",
                sQLNonTransientConnectionException.getMessage());
        assertEquals(
                "The error code of SQLNonTransientConnectionException should be 1",
                sQLNonTransientConnectionException.getErrorCode(), 1);
    }
View Full Code Here

    /**
     * @test java.sql.SQLNonTransientConnectionException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_7() {
        SQLNonTransientConnectionException sQLNonTransientConnectionException = new SQLNonTransientConnectionException(
                null, "MYTESTSTRING", 0);
        assertNotNull(sQLNonTransientConnectionException);
        assertEquals(
                "The SQLState of SQLNonTransientConnectionException set and get should be equivalent",
                "MYTESTSTRING", sQLNonTransientConnectionException
                        .getSQLState());
        assertNull(
                "The reason of SQLNonTransientConnectionException should be null",
                sQLNonTransientConnectionException.getMessage());
        assertEquals(
                "The error code of SQLNonTransientConnectionException should be 0",
                sQLNonTransientConnectionException.getErrorCode(), 0);
    }
View Full Code Here

    /**
     * @test java.sql.SQLNonTransientConnectionException(String, String, int)
     */
    public void test_Constructor_LStringLStringI_8() {
        SQLNonTransientConnectionException sQLNonTransientConnectionException = new SQLNonTransientConnectionException(
                null, "MYTESTSTRING", -1);
        assertNotNull(sQLNonTransientConnectionException);
        assertEquals(
                "The SQLState of SQLNonTransientConnectionException set and get should be equivalent",
                "MYTESTSTRING", sQLNonTransientConnectionException
                        .getSQLState());
        assertNull(
                "The reason of SQLNonTransientConnectionException should be null",
                sQLNonTransientConnectionException.getMessage());
        assertEquals(
                "The error code of SQLNonTransientConnectionException should be -1",
                sQLNonTransientConnectionException.getErrorCode(), -1);
    }
View Full Code Here

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

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

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

TOP

Related Classes of java.sql.SQLNonTransientConnectionException

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.