commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons-sandbox/dbutils/src/test/org/apache/commons/dbutils BaseTestCase.java
Date Wed, 29 Oct 2003 01:30:37 GMT
dgraham     2003/10/28 17:30:37

  Modified:    dbutils/src/test/org/apache/commons/dbutils
                        BaseTestCase.java
  Log:
  Factored creating a MockResultSet into a new method
  so subclasses can use it.
  
  Revision  Changes    Path
  1.11      +11 -4     jakarta-commons-sandbox/dbutils/src/test/org/apache/commons/dbutils/BaseTestCase.java
  
  Index: BaseTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/dbutils/src/test/org/apache/commons/dbutils/BaseTestCase.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- BaseTestCase.java	28 Oct 2003 03:08:06 -0000	1.10
  +++ BaseTestCase.java	29 Oct 2003 01:30:37 -0000	1.11
  @@ -153,8 +153,15 @@
       protected void setUp() throws Exception {
           super.setUp();
   
  -        rs = MockResultSet.create(metaData, rows);
  +        rs = this.createMockResultSet();
           emptyResultSet = MockResultSet.create(metaData, null);
  +    }
  +
  +    /**
  +     * Creates a freshly initialized ResultSet.
  +     */
  +    protected ResultSet createMockResultSet() {
  +        return MockResultSet.create(metaData, rows);
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message