Package java.sql

Examples of java.sql.SQLTransactionRollbackException


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


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

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

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

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

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

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

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

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

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

TOP

Related Classes of java.sql.SQLTransactionRollbackException

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.