Examples of SQLInvalidAuthorizationSpecException


Examples of java.sql.SQLInvalidAuthorizationSpecException

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