db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker AbstractExtentClassTest.java CollectionTest.java FieldConversionTest_3.java PathTest.java
Date Fri, 25 Jun 2004 15:58:40 GMT
arminw      2004/06/25 08:58:40

  Modified:    src/test/org/apache/ojb/broker AbstractExtentClassTest.java
                        CollectionTest.java FieldConversionTest_3.java
                        PathTest.java
  Log:
  make test setter/getter javabeans conform
  
  Revision  Changes    Path
  1.7       +16 -5     db-ojb/src/test/org/apache/ojb/broker/AbstractExtentClassTest.java
  
  Index: AbstractExtentClassTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/AbstractExtentClassTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- AbstractExtentClassTest.java	22 Jun 2003 22:03:26 -0000	1.6
  +++ AbstractExtentClassTest.java	25 Jun 2004 15:58:39 -0000	1.7
  @@ -1,15 +1,15 @@
   package org.apache.ojb.broker;
   
  +import java.util.ArrayList;
  +import java.util.Collection;
  +import java.util.Iterator;
  +
   import junit.framework.TestCase;
   import org.apache.commons.lang.builder.ToStringBuilder;
   import org.apache.ojb.broker.query.Criteria;
   import org.apache.ojb.broker.query.Query;
   import org.apache.ojb.broker.query.QueryFactory;
   
  -import java.util.ArrayList;
  -import java.util.Collection;
  -import java.util.Iterator;
  -
   /**
    *
    *
  @@ -286,6 +286,17 @@
           public XContainer(int id)
           {
               this.id = id;
  +        }
  +
  +        // make javabean conform
  +        public Collection getMyXReferences()
  +        {
  +            return myXReferences;
  +        }
  +
  +        public void setMyXReferences(Collection myXReferences)
  +        {
  +            this.myXReferences = myXReferences;
           }
   
           public void addX(AbstractIF_X someX)
  
  
  
  1.11      +21 -1     db-ojb/src/test/org/apache/ojb/broker/CollectionTest.java
  
  Index: CollectionTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/CollectionTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- CollectionTest.java	21 Jun 2004 11:10:00 -0000	1.10
  +++ CollectionTest.java	25 Jun 2004 15:58:39 -0000	1.11
  @@ -1229,6 +1229,16 @@
               super(name);
               ojbConcreteClass = CollectibleD.class.getName();
           }
  +
  +        public String getOjbConcreteClass()
  +        {
  +            return ojbConcreteClass;
  +        }
  +
  +        public void setOjbConcreteClass(String ojbConcreteClass)
  +        {
  +            this.ojbConcreteClass = ojbConcreteClass;
  +        }
       }
   
       public static interface CollectibleDDIF extends CollectibleBaseIF
  @@ -1249,6 +1259,16 @@
           {
               super(name);
               ojbConcreteClass = CollectibleDD.class.getName();
  +        }
  +
  +        public String getOjbConcreteClass()
  +        {
  +            return ojbConcreteClass;
  +        }
  +
  +        public void setOjbConcreteClass(String ojbConcreteClass)
  +        {
  +            this.ojbConcreteClass = ojbConcreteClass;
           }
       }
   
  
  
  
  1.4       +7 -7      db-ojb/src/test/org/apache/ojb/broker/FieldConversionTest_3.java
  
  Index: FieldConversionTest_3.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/FieldConversionTest_3.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FieldConversionTest_3.java	29 Apr 2003 15:43:26 -0000	1.3
  +++ FieldConversionTest_3.java	25 Jun 2004 15:58:39 -0000	1.4
  @@ -1,14 +1,14 @@
   package org.apache.ojb.broker;
   
  +import java.io.Serializable;
  +import java.math.BigDecimal;
  +
   import junit.framework.TestCase;
   import org.apache.ojb.broker.accesslayer.conversions.ConversionException;
   import org.apache.ojb.broker.accesslayer.conversions.FieldConversion;
   import org.apache.ojb.broker.query.Criteria;
   import org.apache.ojb.broker.query.QueryFactory;
   
  -import java.math.BigDecimal;
  -import java.io.Serializable;
  -
   /**
    * Test using field conversions for PK values.
    *
  @@ -170,14 +170,14 @@
               this.uid = uid;
           }
   
  -        public boolean isState()
  +        public boolean isNodeState()
           {
               return nodeState;
           }
   
  -        public void setState(boolean state)
  +        public void setNodeState(boolean nodeState)
           {
  -            this.nodeState = state;
  +            this.nodeState = nodeState;
           }
   
           public long getRefId()
  
  
  
  1.4       +21 -1     db-ojb/src/test/org/apache/ojb/broker/PathTest.java
  
  Index: PathTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/PathTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PathTest.java	13 Jun 2004 17:59:28 -0000	1.3
  +++ PathTest.java	25 Jun 2004 15:58:39 -0000	1.4
  @@ -10,7 +10,6 @@
   import java.util.Iterator;
   
   import junit.framework.TestCase;
  -
   import org.apache.ojb.broker.query.Criteria;
   import org.apache.ojb.broker.query.Query;
   import org.apache.ojb.broker.query.QueryByCriteria;
  @@ -636,6 +635,27 @@
           {
               this.aAttrib = aAttrib;
               this.bSet = new ArrayList();
  +        }
  +
  +        // make javabeans conform
  +        public int getaAttrib()
  +        {
  +            return aAttrib;
  +        }
  +        // make javabeans conform
  +        public Collection getbSet()
  +        {
  +            return bSet;
  +        }
  +        // make javabeans conform
  +        public void setbSet(Collection bSet)
  +        {
  +            this.bSet = bSet;
  +        }
  +        // make javabeans conform
  +        public void setaAttrib(int aAttrib)
  +        {
  +            this.aAttrib = aAttrib;
           }
   
           /**
  
  
  

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


Mime
View raw message