Code example for SQLInvalidAuthorizationSpecException

Methods: getCause, getErrorCode, getMessage, getSQLState

0
    /** 
     * @test java.sql.SQLInvalidAuthorizationSpecException(String, String, int, 
     *       Throwable) 
     */ 
    public void test_Constructor_LStringLStringILThrowable_9() { 
        SQLInvalidAuthorizationSpecException sQLInvalidAuthorizationSpecException = new SQLInvalidAuthorizationSpecException(
                "MYTESTSTRING", null, 0, null); 
        assertNotNull(sQLInvalidAuthorizationSpecException);
        assertNull(
                "The SQLState of SQLInvalidAuthorizationSpecException should be null", 
                sQLInvalidAuthorizationSpecException.getSQLState());
        assertEquals(
                "The reason of SQLInvalidAuthorizationSpecException set and get should be equivalent", 
                "MYTESTSTRING", 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, int, 
     *       Throwable)