cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r516396 - in /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne: access/DataContextSerializationTest.java access/InheritanceTest.java unit/CayenneCase.java
Date Fri, 09 Mar 2007 12:37:52 GMT
Author: aadamchik
Date: Fri Mar  9 04:37:51 2007
New Revision: 516396

URL: http://svn.apache.org/viewvc?view=rev&rev=516396
Log:
unit test refactoring

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextSerializationTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/InheritanceTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/CayenneCase.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextSerializationTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextSerializationTest.java?view=diff&rev=516396&r1=516395&r2=516396
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextSerializationTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextSerializationTest.java
Fri Mar  9 04:37:51 2007
@@ -94,7 +94,7 @@
 
     public void testSerializeWithLocalCache() throws Exception {
 
-        DataContext context = createDataContextWithLocalCache();
+        DataContext context = createDataContextWithDedicatedCache();
 
         assertNotSame(context.getParentDataDomain().getSharedSnapshotCache(), context
                 .getObjectStore()

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/InheritanceTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/InheritanceTest.java?view=diff&rev=516396&r1=516395&r2=516396
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/InheritanceTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/InheritanceTest.java
Fri Mar  9 04:37:51 2007
@@ -64,7 +64,7 @@
 
         context.commitChanges();
 
-        context = createDataContextWithLocalCache();
+        context = createDataContextWithDedicatedCache();
         SelectQuery query = new SelectQuery(CustomerRepresentative.class);
         List reps = context.performQuery(query);
 

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/CayenneCase.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/CayenneCase.java?view=diff&rev=516396&r1=516395&r2=516396
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/CayenneCase.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/CayenneCase.java
Fri Mar  9 04:37:51 2007
@@ -155,7 +155,7 @@
      * Creates a DataContext that uses local snapshot cache and is based on default test
      * domain.
      */
-    protected DataContext createDataContextWithLocalCache() {
+    protected DataContext createDataContextWithDedicatedCache() {
         DataContext context = getDomain().createDataContext(false);
 
         assertNotSame(getDomain().getSharedSnapshotCache(), context



Mime
View raw message