sullis      2005/01/15 15:34:21

  Modified:    dbcp/src/test/org/apache/commons/dbcp
                        TestDelegatingConnection.java
  Log:
  added method: public void testConnectionToString()
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.7       +7 -1      
jakarta-commons/dbcp/src/test/org/apache/commons/dbcp/TestDelegatingConnection.java
  
  Index: TestDelegatingConnection.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/dbcp/src/test/org/apache/commons/dbcp/TestDelegatingConnection.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestDelegatingConnection.java     28 Feb 2004 11:47:51 -0000      1.6
  +++ TestDelegatingConnection.java     15 Jan 2005 23:34:21 -0000      1.7
  @@ -50,6 +50,12 @@
           assertEquals(delegateConn,conn.getDelegate());
       }
   
  +    public void testConnectionToString() throws Exception {
  +     String s = conn.toString();
  +     assertNotNull(s);
  +     assertTrue(s.length() > 0);
  +    }
  +
       public void testHashCodeEqual() {
           DelegatingConnection conn = new DelegatingConnection(delegateConn);
           DelegatingConnection conn2 = new DelegatingConnection(delegateConn);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to