Code example for SQLFeatureNotSupportedException

Methods: getCause, getErrorCode, getMessage, getSQLState

0
 
    /** 
     * @test java.sql.SQLFeatureNotSupportedException(Throwable) 
     */ 
    public void test_Constructor_LThrowable_1() { 
        SQLFeatureNotSupportedException sQLFeatureNotSupportedException = new SQLFeatureNotSupportedException(
                (Throwable) null);
        assertNotNull(sQLFeatureNotSupportedException);
        assertNull(
                "The SQLState of SQLFeatureNotSupportedException should be null", 
                sQLFeatureNotSupportedException.getSQLState());
        assertNull(
                "The reason of SQLFeatureNotSupportedException should be null", 
                sQLFeatureNotSupportedException.getMessage());
        assertEquals(
                "The error code of SQLFeatureNotSupportedException should be 0", 
                sQLFeatureNotSupportedException.getErrorCode(), 0);
        assertNull(
                "The cause of SQLFeatureNotSupportedException should be null", 
                sQLFeatureNotSupportedException.getCause());
    } 
 
    /** 
     * @test java.sql.SQLFeatureNotSupportedException(String, Throwable) 
     */