Code example for SQLInvalidAuthorizationSpecException

Methods: getCause, getErrorCode, getMessage, getSQLState

0
 
    /** 
     * @test java.sql.SQLInvalidAuthorizationSpecException(String, Throwable) 
     */ 
    public void test_Constructor_LStringLThrowable_3() { 
        SQLInvalidAuthorizationSpecException sQLInvalidAuthorizationSpecException = new SQLInvalidAuthorizationSpecException(
                (String) null, (Throwable) null);
        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 0", 
                sQLInvalidAuthorizationSpecException.getErrorCode(), 0);
        assertNull(
                "The cause of SQLInvalidAuthorizationSpecException should be null", 
                sQLInvalidAuthorizationSpecException.getCause());
    } 
 
    /** 
     * @test java.sql.SQLInvalidAuthorizationSpecException(String, String, 
     *       Throwable)