cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From and...@apache.org
Subject svn commit: r764569 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDataObjectTest.java
Date Mon, 13 Apr 2009 19:21:57 GMT
Author: andrey
Date: Mon Apr 13 19:21:56 2009
New Revision: 764569

URL: http://svn.apache.org/viewvc?rev=764569&view=rev
Log:
trying to fix failing test

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDataObjectTest.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDataObjectTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDataObjectTest.java?rev=764569&r1=764568&r2=764569&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDataObjectTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDataObjectTest.java
Mon Apr 13 19:21:56 2009
@@ -21,15 +21,14 @@
 
 import java.util.List;
 
-import junit.framework.TestCase;
-
 import org.apache.art.Artist;
 import org.apache.art.ArtistExhibit;
 import org.apache.art.Painting;
 import org.apache.cayenne.access.DataContext;
+import org.apache.cayenne.unit.CayenneCase;
 import org.apache.cayenne.unit.util.TestBean;
 
-public class CayenneDataObjectTest extends TestCase {
+public class CayenneDataObjectTest extends CayenneCase {
 
     public void testSetObjectId() throws Exception {
         CayenneDataObject obj = new CayenneDataObject();
@@ -97,7 +96,7 @@
     }
     
     public void testReadNestedPropertyToManyInMiddle() throws Exception {
-        DataContext context = DataContext.createDataContext();
+        DataContext context = createDataContext();
         
         Artist a = context.newObject(Artist.class);
         ArtistExhibit ex = context.newObject(ArtistExhibit.class);



Mime
View raw message