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/dbutils/src/test/org/apache/commons/dbutils BaseTestCase.java BasicRowProcessorTest.java TestBean.java
Date Sun, 09 Nov 2003 04:50:46 GMT
dgraham     2003/11/08 20:50:46

  Modified:    dbutils/src/test/org/apache/commons/dbutils
                        BaseTestCase.java BasicRowProcessorTest.java
                        TestBean.java
  Log:
  Fixed test bug by changing property and column name
  to "notDate".
  
  Revision  Changes    Path
  1.3       +4 -4      jakarta-commons/dbutils/src/test/org/apache/commons/dbutils/BaseTestCase.java
  
  Index: BaseTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbutils/src/test/org/apache/commons/dbutils/BaseTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BaseTestCase.java	9 Nov 2003 04:30:50 -0000	1.2
  +++ BaseTestCase.java	9 Nov 2003 04:50:46 -0000	1.3
  @@ -97,7 +97,7 @@
               "integerTest",
               "nullObjectTest",
               "nullPrimitiveTest",
  -            "wrongType" };
  +            "notDate" };
   
       /**
        * The number of columns in the MockResultSet.
  
  
  
  1.3       +5 -5      jakarta-commons/dbutils/src/test/org/apache/commons/dbutils/BasicRowProcessorTest.java
  
  Index: BasicRowProcessorTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbutils/src/test/org/apache/commons/dbutils/BasicRowProcessorTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BasicRowProcessorTest.java	9 Nov 2003 04:30:50 -0000	1.2
  +++ BasicRowProcessorTest.java	9 Nov 2003 04:50:46 -0000	1.3
  @@ -117,7 +117,7 @@
           assertEquals(new Integer(4), b.getIntegerTest());
           assertEquals(null, b.getNullObjectTest());
           assertEquals(0, b.getNullPrimitiveTest());
  -        assertEquals("not a date", b.getNotADate());
  +        assertEquals("not a date", b.getNotDate());
       }
   
       public void testToBeanList() throws SQLException {
  @@ -136,7 +136,7 @@
           assertEquals(new Integer(4), b.getIntegerTest());
           assertEquals(null, b.getNullObjectTest());
           assertEquals(0, b.getNullPrimitiveTest());
  -        assertEquals("not a date", b.getNotADate());
  +        assertEquals("not a date", b.getNotDate());
       }
   
       public void testToMap() throws SQLException {
  
  
  
  1.3       +8 -8      jakarta-commons/dbutils/src/test/org/apache/commons/dbutils/TestBean.java
  
  Index: TestBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbutils/src/test/org/apache/commons/dbutils/TestBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestBean.java	9 Nov 2003 04:30:50 -0000	1.2
  +++ TestBean.java	9 Nov 2003 04:50:46 -0000	1.3
  @@ -97,7 +97,7 @@
        * ResultSet does not match the type of the bean property.  In this case, 
        * a Date will be returned but the property is a String.
        */
  -    private String notADate = "not a date";
  +    private String notDate = "not a date";
   
       /**
        * Constructor for TestBean.
  @@ -170,12 +170,12 @@
           nullPrimitiveTest = i;
       }
   
  -    public String getNotADate() {
  -        return notADate;
  +    public String getNotDate() {
  +        return notDate;
       }
   
  -    public void setNotADate(String string) {
  -        notADate = string;
  +    public void setNotDate(String string) {
  +        notDate = string;
       }
   
   }
  
  
  

---------------------------------------------------------------------
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