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 InheritanceMultipleTableTest.java
Date Fri, 22 Oct 2004 17:07:23 GMT
arminw      2004/10/22 10:07:23

  Modified:    src/test/org/apache/ojb/broker Tag: OJB_1_0_RELEASE
                        InheritanceMultipleTableTest.java
  Log:
  minor refactoring
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.7.2.4   +7 -7      db-ojb/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java
  
  Index: InheritanceMultipleTableTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java,v
  retrieving revision 1.7.2.3
  retrieving revision 1.7.2.4
  diff -u -r1.7.2.3 -r1.7.2.4
  --- InheritanceMultipleTableTest.java	22 Oct 2004 12:40:55 -0000	1.7.2.3
  +++ InheritanceMultipleTableTest.java	22 Oct 2004 17:07:23 -0000	1.7.2.4
  @@ -169,12 +169,12 @@
           result = broker.getCollectionByQuery(query);
           assertEquals(3, result.size());
   
  -        em = (Employee) SerializationUtils.deserialize(SerializationUtils.serialize(em));
  -        m_1 = (Manager) SerializationUtils.deserialize(SerializationUtils.serialize(m_1));
  -        m_2 = (Manager) SerializationUtils.deserialize(SerializationUtils.serialize(m_2));
  -        m_3 = (Manager) SerializationUtils.deserialize(SerializationUtils.serialize(m_3));
  -        ex_1 = (Executive) SerializationUtils.deserialize(SerializationUtils.serialize(ex_1));
  -        ex_2 = (Executive) SerializationUtils.deserialize(SerializationUtils.serialize(ex_2));
  +        em = (Employee) SerializationUtils.clone(em);
  +        m_1 = (Manager) SerializationUtils.clone(m_1);
  +        m_2 = (Manager) SerializationUtils.clone(m_2);
  +        m_3 = (Manager) SerializationUtils.clone(m_3);
  +        ex_1 = (Executive) SerializationUtils.clone(ex_1);
  +        ex_2 = (Executive) SerializationUtils.clone(ex_2);
   
           em.setName(em.getName() + "_updated");
           m_1.setName(m_1.getName() + "_updated");
  
  
  

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