db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r452817 - /db/ojb/trunk/src/test/org/apache/ojb/broker/sequence/SequenceManagerTest.java
Date Wed, 04 Oct 2006 10:07:51 GMT
Author: arminw
Date: Wed Oct  4 03:07:50 2006
New Revision: 452817

URL: http://svn.apache.org/viewvc?view=rev&rev=452817
Log:
rename attributes

Modified:
    db/ojb/trunk/src/test/org/apache/ojb/broker/sequence/SequenceManagerTest.java

Modified: db/ojb/trunk/src/test/org/apache/ojb/broker/sequence/SequenceManagerTest.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/test/org/apache/ojb/broker/sequence/SequenceManagerTest.java?view=diff&rev=452817&r1=452816&r2=452817
==============================================================================
--- db/ojb/trunk/src/test/org/apache/ojb/broker/sequence/SequenceManagerTest.java (original)
+++ db/ojb/trunk/src/test/org/apache/ojb/broker/sequence/SequenceManagerTest.java Wed Oct
 4 03:07:50 2006
@@ -167,7 +167,7 @@
             SequenceDescriptor sd = jcd.getSequenceDescriptor();
             assertNotNull("Can not find sequence-descriptor - check test", sd);
             // don't use autoNaming
-            sd.addAttribute("autoNaming", "false");
+            sd.addAttribute("seq.autoNaming", "false");
             // add new connection descriptor to global base
             mm.connectionRepository().addDescriptor(jcd);
 
@@ -190,12 +190,12 @@
                 */
                 SMAutoNaming obj = new SMAutoNaming("testAutoNaming_1");
                 sd = broker.serviceConnectionManager().getConnectionDescriptor().getSequenceDescriptor();
-                assertTrue("false".equals(sd.getAttribute("autoNaming")));
+                assertTrue("false".equals(sd.getAttribute("seq.autoNaming")));
 
                 broker.beginTransaction();
                 broker.store(obj);
                 broker.commitTransaction();
-                fail("If sequence manager implementation supports 'autoNaming' feature,"
+                fail("If sequence manager implementation supports 'seq.autoNaming' feature,"
                         +" this test should cause an exception (else ignore this failure).");
             }
             catch (PersistenceBrokerException e)
@@ -234,7 +234,7 @@
                 --> should pass
                 */
                 field.setSequenceName(null);
-                sd.addAttribute("autoNaming", "true");
+                sd.addAttribute("seq.autoNaming", "true");
                 broker = ojb.lookupBroker(tempKey);
                 SMAutoNaming obj = new SMAutoNaming("testAutoNaming_3");
                 broker.beginTransaction();



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