Code example for SQLFeatureNotSupportedException

Methods: getCausegetMessagegetErrorCodegetSQLState

0
    /** 
     * @test java.sql.SQLFeatureNotSupportedException(String, String, int, 
     *       Throwable) 
     */ 
    public void test_Constructor_LStringLStringILThrowable_7() { 
        SQLFeatureNotSupportedException sQLFeatureNotSupportedException = new SQLFeatureNotSupportedException(
                "MYTESTSTRING", null, 1, null); 
        assertNotNull(sQLFeatureNotSupportedException);
        assertNotNull(sQLFeatureNotSupportedException);
        assertNull(
                "The SQLState of SQLFeatureNotSupportedException should be null", 
                sQLFeatureNotSupportedException.getSQLState());
        assertEquals(
                "The reason of SQLFeatureNotSupportedException set and get should be equivalent", 
                "MYTESTSTRING", sQLFeatureNotSupportedException.getMessage());
        assertEquals(
                "The error code of SQLFeatureNotSupportedException should be 1", 
                sQLFeatureNotSupportedException.getErrorCode(), 1);
        assertNull(
                "The cause of SQLFeatureNotSupportedException should be null", 
                sQLFeatureNotSupportedException.getCause());
    } 
 
    /** 
     * @test java.sql.SQLFeatureNotSupportedException(String, String, int, 
     *       Throwable) 
Experience pair programming with AI  Get Codota for Java