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 SequenceManagerTest.java
Date Tue, 01 Jul 2003 07:29:17 GMT
arminw      2003/07/01 00:29:17

  Modified:    src/test/org/apache/ojb/broker/sequence
                        SequenceManagerTest.java
  Log:
  use tx demarcation to store object
  
  Revision  Changes    Path
  1.22      +3 -3      db-ojb/src/test/org/apache/ojb/broker/sequence/SequenceManagerTest.java
  
  Index: SequenceManagerTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/sequence/SequenceManagerTest.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- SequenceManagerTest.java	15 Jun 2003 12:00:03 -0000	1.21
  +++ SequenceManagerTest.java	1 Jul 2003 07:29:17 -0000	1.22
  @@ -146,9 +146,9 @@
           SMKey key = new SMKey();
           key.setName(name);
           PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker();
  -
  +        broker.beginTransaction();
           broker.store(key);
  -
  +        broker.commitTransaction();
           assertEquals("Value was not store: " + key, name, key.getName());
           assertNotNull(MESSAGE + key, key.getIntegerKey());
           assertTrue(MESSAGE + key, (key.getIntKey() != 0));
  
  
  

Mime
View raw message