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/sequence AutoIncrementTest.java
Date Mon, 19 Apr 2004 16:39:35 GMT
arminw      2004/04/19 09:39:35

  Modified:    src/test/org/apache/ojb/broker/sequence
                        AutoIncrementTest.java
  Log:
  remove unused method
  
  Revision  Changes    Path
  1.2       +2 -14     db-ojb/src/test/org/apache/ojb/broker/sequence/AutoIncrementTest.java
  
  Index: AutoIncrementTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/sequence/AutoIncrementTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AutoIncrementTest.java	19 Apr 2004 16:31:15 -0000	1.1
  +++ AutoIncrementTest.java	19 Apr 2004 16:39:35 -0000	1.2
  @@ -1,12 +1,8 @@
   package org.apache.ojb.broker.sequence;
   
  -import junit.framework.TestCase;
  -import org.apache.ojb.broker.PersistenceBroker;
  -import org.apache.ojb.broker.PersistenceBrokerFactory;
  +import org.apache.commons.lang.builder.ToStringBuilder;
   import org.apache.ojb.broker.Identity;
  -import org.apache.ojb.broker.metadata.ClassDescriptor;
   import org.apache.ojb.junit.PBTestCase;
  -import org.apache.commons.lang.builder.ToStringBuilder;
   
   /**
    * Test autoincrement behaviour of PK and non PK fields.
  @@ -47,14 +43,6 @@
           assertEquals(obj_2.getIntId(), newObj_2.getIntId());
           assertEquals(obj_2.getIntegerId(), newObj_2.getIntegerId());
           assertEquals(obj_2.getStr(), newObj_2.getStr());
  -    }
  -
  -    private void changePrimaryKeyStatus(boolean integerIdField, boolean intIdField, boolean
strIdField)
  -    {
  -        ClassDescriptor cld = broker.getClassDescriptor(IncrementObject.class);
  -        cld.getFieldDescriptorByName("integerId").setPrimaryKey(integerIdField);
  -        cld.getFieldDescriptorByName("intId").setPrimaryKey(intIdField);
  -        cld.getFieldDescriptorByName("str").setPrimaryKey(strIdField);
       }
   
       public static class IncrementObject
  
  
  

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