db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: jakarta-ojb/src/test/org/apache/ojb/odmg FieldConversion_Node.java FieldConversion_LongToBigDecimalConversion.java FieldConversion_ForeigenKeyTest.java
Date Wed, 29 Jan 2003 10:52:58 GMT
arminw      2003/01/29 02:52:57

  Modified:    src/test/org/apache/ojb/odmg FieldConversion_Node.java
                        FieldConversion_LongToBigDecimalConversion.java
                        FieldConversion_ForeigenKeyTest.java
  Log:
  update test case
  
  Revision  Changes    Path
  1.2       +34 -0     jakarta-ojb/src/test/org/apache/ojb/odmg/FieldConversion_Node.java
  
  Index: FieldConversion_Node.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/test/org/apache/ojb/odmg/FieldConversion_Node.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FieldConversion_Node.java	16 Jan 2003 17:11:59 -0000	1.1
  +++ FieldConversion_Node.java	29 Jan 2003 10:52:57 -0000	1.2
  @@ -16,9 +16,43 @@
       private long refId;
       FieldConversion_Node parent;
   
  +    public FieldConversion_Node()
  +    {
  +    }
  +
       public FieldConversion_Node(long uid, FieldConversion_Node parent)
       {
           this.uid = uid;
  +        this.parent = parent;
  +    }
  +
  +    public long getUid()
  +    {
  +        return uid;
  +    }
  +
  +    public void setUid(long uid)
  +    {
  +        this.uid = uid;
  +    }
  +
  +    public long getRefId()
  +    {
  +        return refId;
  +    }
  +
  +    public void setRefId(long refId)
  +    {
  +        this.refId = refId;
  +    }
  +
  +    public FieldConversion_Node getParent()
  +    {
  +        return parent;
  +    }
  +
  +    public void setParent(FieldConversion_Node parent)
  +    {
           this.parent = parent;
       }
   }
  
  
  
  1.2       +4 -0      jakarta-ojb/src/test/org/apache/ojb/odmg/FieldConversion_LongToBigDecimalConversion.java
  
  Index: FieldConversion_LongToBigDecimalConversion.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/test/org/apache/ojb/odmg/FieldConversion_LongToBigDecimalConversion.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FieldConversion_LongToBigDecimalConversion.java	16 Jan 2003 17:11:59 -0000	1.1
  +++ FieldConversion_LongToBigDecimalConversion.java	29 Jan 2003 10:52:57 -0000	1.2
  @@ -15,6 +15,10 @@
    */
   public class FieldConversion_LongToBigDecimalConversion implements FieldConversion
   {
  +    public FieldConversion_LongToBigDecimalConversion()
  +    {
  +    }
  +
       public Object javaToSql(Object source) throws ConversionException
       {
           Object ret;
  
  
  
  1.2       +3 -3      jakarta-ojb/src/test/org/apache/ojb/odmg/FieldConversion_ForeigenKeyTest.java
  
  Index: FieldConversion_ForeigenKeyTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/test/org/apache/ojb/odmg/FieldConversion_ForeigenKeyTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FieldConversion_ForeigenKeyTest.java	16 Jan 2003 17:11:59 -0000	1.1
  +++ FieldConversion_ForeigenKeyTest.java	29 Jan 2003 10:52:57 -0000	1.2
  @@ -91,7 +91,7 @@
           int after = result.size();
   
           assertFalse(after == 0);
  -        assertEquals(before, after);
  +        assertEquals(before + 2, after);
   
       }
   
  @@ -134,6 +134,6 @@
           int after = result.size();
   
           assertFalse(after == 0);
  -        assertEquals(before, after);
  +        assertEquals(before + 2, after);
       }
   }
  
  
  

Mime
View raw message