Additional unwrap test.

pull/192/head
Brett Wooldridge 10 years ago
parent b000fc23a5
commit 1912587bba

@ -76,6 +76,13 @@ public class TestProxies
Assert.assertNotNull(stmt.getResultSet());
Assert.assertNotNull(stmt.getConnection());
Assert.assertTrue(stmt.unwrap(StubStatement.class) instanceof StubStatement);
try {
stmt.unwrap(TestProxies.class);
Assert.fail();
}
catch (SQLException e) {
// pass
}
}
finally {
ds.close();

Loading…
Cancel
Save