Code example for Connection

Methods: closeunwrap

0
    } 
 
    public void testDefault() throws Exception { 
        Connection conn = dataSource.getConnection();
 
        MockConnection mockConn = conn.unwrap(MockConnection.class);
 
        Assert.assertEquals("select 123", mockConn.getLastSql());
 
        conn.close();
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE