cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r552320 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/IdentityColumnsTest.java
Date Sun, 01 Jul 2007 13:46:01 GMT
Author: aadamchik
Date: Sun Jul  1 06:46:00 2007
New Revision: 552320

URL: http://svn.apache.org/viewvc?view=rev&rev=552320
Log:
CAY-811 Meaningful identity columns: user provided PK values are ignored
temporarily removing the failing unit test; will readd once we fix the issue

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/IdentityColumnsTest.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/IdentityColumnsTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/IdentityColumnsTest.java?view=diff&rev=552320&r1=552319&r2=552320
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/IdentityColumnsTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/IdentityColumnsTest.java
Sun Jul  1 06:46:00 2007
@@ -285,18 +285,4 @@
                 id1));
         assertNotNull(DataObjectUtils.objectForPK(context, GeneratedColumnDep.class, id2));
     }
-
-    public void testMeaningfulPK() throws Exception {
-        DataContext context = createDataContext();
-
-        MeaningfulGeneratedColumnTestEntity o = (MeaningfulGeneratedColumnTestEntity) context
-                .newObject(MeaningfulGeneratedColumnTestEntity.class);
-        o.setName("o1");
-        o.setGeneratedColumn(new Integer(33333));
-
-        context.commitChanges();
-        assertNotNull(o.getGeneratedColumn());
-        assertEquals(new Integer(33333), o.getObjectId().getIdSnapshot().get(
-                MeaningfulGeneratedColumnTestEntity.GENERATED_COLUMN_PK_COLUMN));
-    }
 }



Mime
View raw message