Package java.sql

Examples of java.sql.SQLNonTransientException


    /**
     * @test java.sql.SQLNonTransientException(String, String, int, Throwable)
     */
    public void test_Constructor_LStringLStringILThrowable_15() {
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(
                null, "MYTESTSTRING", 0, null);
        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);
        assertNull("The cause of SQLNonTransientException should be null",
                sQLNonTransientException.getCause());

    }
View Full Code Here


    /**
     * @test java.sql.SQLNonTransientException(String, String, int, Throwable)
     */
    public void test_Constructor_LStringLStringILThrowable_16() {
        Throwable cause = new Exception("MYTHROWABLE");
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(
                null, "MYTESTSTRING", -1, cause);
        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);
        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_17() {
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(
                null, "MYTESTSTRING", -1, null);
        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);
        assertNull("The cause of SQLNonTransientException should be null",
                sQLNonTransientException.getCause());
    }
View Full Code Here

    /**
     * @test java.sql.SQLNonTransientException(String, String, int, Throwable)
     */
    public void test_Constructor_LStringLStringILThrowable_18() {
        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_19() {
        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(String, String, int, Throwable)
     */
    public void test_Constructor_LStringLStringILThrowable_20() {
        Throwable cause = new Exception("MYTHROWABLE");
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(
                null, null, 0, 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 0",
                sQLNonTransientException.getErrorCode(), 0);
        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_21() {
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(
                null, null, 0, 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 0",
                sQLNonTransientException.getErrorCode(), 0);
        assertNull("The cause of SQLNonTransientException should be null",
                sQLNonTransientException.getCause());
    }
View Full Code Here

public class SQLNonTransientExceptionTest extends TestCase {

    private SQLNonTransientException sQLNonTransientException;

    protected void setUp() throws Exception {
        sQLNonTransientException = new SQLNonTransientException("MYTESTSTRING",
                "MYTESTSTRING", 1, new Exception("MYTHROWABLE"));
    }
View Full Code Here

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

    /**
     * @test java.sql.SQLNonTransientException(String)
     */
    public void test_Constructor_LString_1() {
        SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(
                (String) 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 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.