You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/11/23 18:03:51 UTC
svn commit: r883414 -
/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestDelegatingConnection.java
Author: sebb
Date: Mon Nov 23 17:03:51 2009
New Revision: 883414
URL: http://svn.apache.org/viewvc?rev=883414&view=rev
Log:
Remove unnecessary duplication of setup code
Modified:
commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestDelegatingConnection.java
Modified: commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestDelegatingConnection.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestDelegatingConnection.java?rev=883414&r1=883413&r2=883414&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestDelegatingConnection.java (original)
+++ commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestDelegatingConnection.java Mon Nov 23 17:03:51 2009
@@ -61,19 +61,16 @@
}
public void testHashCodeEqual() {
- DelegatingConnection conn = new DelegatingConnection(delegateConn);
DelegatingConnection conn2 = new DelegatingConnection(delegateConn);
assertEquals(conn.hashCode(), conn2.hashCode());
}
public void testHashCodeNotEqual() {
- DelegatingConnection conn = new DelegatingConnection(delegateConn);
DelegatingConnection conn2 = new DelegatingConnection(delegateConn2);
assertTrue(conn.hashCode() != conn2.hashCode());
}
public void testEquals() {
- DelegatingConnection conn = new DelegatingConnection(delegateConn);
DelegatingConnection conn2 = new DelegatingConnection(delegateConn);
DelegatingConnection conn3 = new DelegatingConnection(null);