cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r454223 - /incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/test/java/org/apache/cayenne/access/ObjectStoreTst.java
Date Sun, 08 Oct 2006 22:10:57 GMT
Author: aadamchik
Date: Sun Oct  8 15:10:57 2006
New Revision: 454223

URL: http://svn.apache.org/viewvc?view=rev&rev=454223
Log:
refactoring unit test; no changes

Modified:
    incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/test/java/org/apache/cayenne/access/ObjectStoreTst.java

Modified: incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/test/java/org/apache/cayenne/access/ObjectStoreTst.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/test/java/org/apache/cayenne/access/ObjectStoreTst.java?view=diff&rev=454223&r1=454222&r2=454223
==============================================================================
--- incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/test/java/org/apache/cayenne/access/ObjectStoreTst.java
(original)
+++ incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/test/java/org/apache/cayenne/access/ObjectStoreTst.java
Sun Oct  8 15:10:57 2006
@@ -45,19 +45,19 @@
 
         DataObject o1 = new MockDataObject();
         o1.setObjectId(new ObjectId("T", "key1", "v1"));
-        context.getObjectStore().recordObjectCreated(o1);
+        context.getObjectStore().registerNode(o1.getObjectId(), o1);
         assertEquals(1, context.getObjectStore().registeredObjectsCount());
 
         // test object with same id
         DataObject o2 = new MockDataObject();
         o2.setObjectId(new ObjectId("T", "key1", "v1"));
-        context.getObjectStore().recordObjectCreated(o2);
+        context.getObjectStore().registerNode(o2.getObjectId(), o2);
         assertEquals(1, context.getObjectStore().registeredObjectsCount());
 
         // test new object
         DataObject o3 = new MockDataObject();
         o3.setObjectId(new ObjectId("T", "key3", "v3"));
-        context.getObjectStore().recordObjectCreated(o3);
+        context.getObjectStore().registerNode(o3.getObjectId(), o3);
         assertEquals(2, context.getObjectStore().registeredObjectsCount());
     }
 
@@ -108,7 +108,7 @@
         ObjectId oid = object.getObjectId();
 
         // insert object into the ObjectStore
-        context.getObjectStore().recordObjectCreated(object);
+        context.getObjectStore().registerNode(oid, object);
         assertSame(object, context.getObjectStore().getNode(oid));
         assertNotNull(context.getObjectStore().getCachedSnapshot(oid));
 



Mime
View raw message