cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r454224 - /incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/test/java/org/apache/cayenne/access/DataContextTst.java
Date Sun, 08 Oct 2006 22:12:00 GMT
Author: aadamchik
Date: Sun Oct  8 15:11:59 2006
New Revision: 454224

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

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

Modified: incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/test/java/org/apache/cayenne/access/DataContextTst.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/test/java/org/apache/cayenne/access/DataContextTst.java?view=diff&rev=454224&r1=454223&r2=454224
==============================================================================
--- incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/test/java/org/apache/cayenne/access/DataContextTst.java
(original)
+++ incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/test/java/org/apache/cayenne/access/DataContextTst.java
Sun Oct  8 15:11:59 2006
@@ -547,7 +547,7 @@
         artist.setArtistName("Something different");
         assertTrue(context.hasChanges());
     }
-    
+
     public void testInvalidateObjects() throws Exception {
         DataContext context = createDataContext();
 
@@ -559,7 +559,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