Update of /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23863/src/java-test/org/logicalcobwebs/proxool
Modified Files:
ConnectionPoolTest.java HouseKeeperTest.java
StateListenerTest.java
Log Message:
Don't log worrying stack traces for expected exceptions.
Index: ConnectionPoolTest.java
===================================================================
RCS file: /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool/ConnectionPoolTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ConnectionPoolTest.java 26 Oct 2003 16:10:46 -0000 1.1
--- ConnectionPoolTest.java 2 Jun 2004 21:05:19 -0000 1.2
***************
*** 56,60 ****
fail("Didn't expect to get third connection");
} catch (SQLException e) {
! LOG.debug("Ignoring expected exception", e);
}
--- 56,61 ----
fail("Didn't expect to get third connection");
} catch (SQLException e) {
! // Log message only so we don't get a worrying stack trace
! LOG.debug("Ignoring expected exception: " + e.getMessage());
}
***************
*** 94,98 ****
fail("Didn't expect to get third connection");
} catch (SQLException e) {
! LOG.debug("Ignoring expected exception", e);
}
--- 95,100 ----
fail("Didn't expect to get third connection");
} catch (SQLException e) {
! // Log message only so we don't get a worrying stack trace
! LOG.debug("Ignoring expected exception: " + e.getMessage());
}
***************
*** 195,198 ****
--- 197,203 ----
Revision history:
$Log$
+ Revision 1.2 2004/06/02 21:05:19 billhorsman
+ Don't log worrying stack traces for expected exceptions.
+
Revision 1.1 2003/10/26 16:10:46 billhorsman
renamed to be more consistent
Index: HouseKeeperTest.java
===================================================================
RCS file: /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool/HouseKeeperTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** HouseKeeperTest.java 30 Sep 2003 18:40:16 -0000 1.8
--- HouseKeeperTest.java 2 Jun 2004 21:05:19 -0000 1.9
***************
*** 138,142 ****
fail("Expected to get an exception because the test failed");
} catch (SQLException e) {
! LOG.debug("Expected exception.", e);
}
--- 138,143 ----
fail("Expected to get an exception because the test failed");
} catch (SQLException e) {
! // Log message only so we don't get a worrying stack trace
! LOG.debug("Expected exception: " + e.getMessage());
}
***************
*** 225,228 ****
--- 226,232 ----
Revision history:
$Log$
+ Revision 1.9 2004/06/02 21:05:19 billhorsman
+ Don't log worrying stack traces for expected exceptions.
+
Revision 1.8 2003/09/30 18:40:16 billhorsman
New tests for test-before-use and test-after-use
Index: StateListenerTest.java
===================================================================
RCS file: /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool/StateListenerTest.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** StateListenerTest.java 4 Mar 2003 10:58:44 -0000 1.11
--- StateListenerTest.java 2 Jun 2004 21:05:19 -0000 1.12
***************
*** 75,79 ****
} catch (SQLException e) {
// We expect a refusal here
! LOG.debug("Expected refusal", e);
}
--- 75,80 ----
} catch (SQLException e) {
// We expect a refusal here
! // Log message only so we don't get a worrying stack trace
! LOG.debug("Ignoring expected refusal: " + e.getMessage());
}
***************
*** 156,159 ****
--- 157,163 ----
Revision history:
$Log$
+ Revision 1.12 2004/06/02 21:05:19 billhorsman
+ Don't log worrying stack traces for expected exceptions.
+
Revision 1.11 2003/03/04 10:58:44 billhorsman
checkstyle
|