commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-dbcp git commit: Formatting.
Date Sat, 28 Oct 2017 20:38:38 GMT
Repository: commons-dbcp
Updated Branches:
  refs/heads/master 34b9351a4 -> 8a71764a8


Formatting.

Project: http://git-wip-us.apache.org/repos/asf/commons-dbcp/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-dbcp/commit/8a71764a
Tree: http://git-wip-us.apache.org/repos/asf/commons-dbcp/tree/8a71764a
Diff: http://git-wip-us.apache.org/repos/asf/commons-dbcp/diff/8a71764a

Branch: refs/heads/master
Commit: 8a71764a895b234bd1fc76553835ef4c974f22e1
Parents: 34b9351
Author: Gary Gregory <ggregory@apache.org>
Authored: Sat Oct 28 14:38:36 2017 -0600
Committer: Gary Gregory <ggregory@apache.org>
Committed: Sat Oct 28 14:38:36 2017 -0600

----------------------------------------------------------------------
 .../apache/commons/dbcp2/TestAbandonedBasicDataSource.java  | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/8a71764a/src/test/java/org/apache/commons/dbcp2/TestAbandonedBasicDataSource.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/dbcp2/TestAbandonedBasicDataSource.java b/src/test/java/org/apache/commons/dbcp2/TestAbandonedBasicDataSource.java
index 8aa8bd7..9cc47d6 100644
--- a/src/test/java/org/apache/commons/dbcp2/TestAbandonedBasicDataSource.java
+++ b/src/test/java/org/apache/commons/dbcp2/TestAbandonedBasicDataSource.java
@@ -116,9 +116,9 @@ public class TestAbandonedBasicDataSource extends TestBasicDataSource
{
         assertEquals(1, ds.getNumActive());
 
         // set an IO failure causing the isClosed method to fail
-        final TesterConnection tconn1 = (TesterConnection) ((DelegatingConnection<?>)conn1).getInnermostDelegate();
+        final TesterConnection tconn1 = (TesterConnection) ((DelegatingConnection<?>)
conn1).getInnermostDelegate();
         tconn1.setFailure(new IOException("network error"));
-        final TesterConnection tconn2 = (TesterConnection) ((DelegatingConnection<?>)conn2).getInnermostDelegate();
+        final TesterConnection tconn2 = (TesterConnection) ((DelegatingConnection<?>)
conn2).getInnermostDelegate();
         tconn2.setFailure(new IOException("network error"));
 
         try {
@@ -128,7 +128,10 @@ public class TestAbandonedBasicDataSource extends TestBasicDataSource
{
         }
         assertEquals(0, ds.getNumActive());
 
-        try { conn1.close(); } catch (final SQLException ex) { }
+        try {
+            conn1.close();
+        } catch (final SQLException ex) {
+        }
         assertEquals(0, ds.getNumActive());
         final String string = sw.toString();
         assertTrue(string, string.contains("testAbandonedCloseWithExceptions"));


Mime
View raw message