Improve test coverage.

pull/307/head
Brett Wooldridge 10 years ago
parent f8de75b9f4
commit edbe8f1d14

@ -203,6 +203,9 @@ public class TestConnections
try {
Connection connection = ds.getConnection();
connection.close();
Assert.assertTrue("Connection should have closed", connection.isClosed());
Assert.assertTrue("Expected to contain ClosedConnection, but was " + connection.toString(), connection.toString().contains("ClosedConnection"));
connection.close();
}
finally {

Loading…
Cancel
Save