cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r439634 - /incubator/cayenne/main/trunk/integration-test/jpa-unit1/src/test/java/org/apache/cayenne/jpa/itest/entity/_2_1_6_MappingDefaultsNonRelationshipTest.java
Date Sat, 02 Sep 2006 18:41:42 GMT
Author: aadamchik
Date: Sat Sep  2 11:41:42 2006
New Revision: 439634

URL: http://svn.apache.org/viewvc?rev=439634&view=rev
Log:
final tests for non-relationship persistent types

Modified:
    incubator/cayenne/main/trunk/integration-test/jpa-unit1/src/test/java/org/apache/cayenne/jpa/itest/entity/_2_1_6_MappingDefaultsNonRelationshipTest.java

Modified: incubator/cayenne/main/trunk/integration-test/jpa-unit1/src/test/java/org/apache/cayenne/jpa/itest/entity/_2_1_6_MappingDefaultsNonRelationshipTest.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/integration-test/jpa-unit1/src/test/java/org/apache/cayenne/jpa/itest/entity/_2_1_6_MappingDefaultsNonRelationshipTest.java?rev=439634&r1=439633&r2=439634&view=diff
==============================================================================
--- incubator/cayenne/main/trunk/integration-test/jpa-unit1/src/test/java/org/apache/cayenne/jpa/itest/entity/_2_1_6_MappingDefaultsNonRelationshipTest.java
(original)
+++ incubator/cayenne/main/trunk/integration-test/jpa-unit1/src/test/java/org/apache/cayenne/jpa/itest/entity/_2_1_6_MappingDefaultsNonRelationshipTest.java
Sat Sep  2 11:41:42 2006
@@ -39,7 +39,8 @@
 
 public class _2_1_6_MappingDefaultsNonRelationshipTest extends EntityManagerCase {
 
-    public void testEmbeddedDefault() throws Exception {
+    // TODO: andrus 8/10/2006 - fails
+    public void _testEmbeddedDefault() throws Exception {
         ItestDBUtils.deleteAll("EmbeddedImpliedEntity");
 
         EmbeddedImpliedEntity o1 = new EmbeddedImpliedEntity();
@@ -50,10 +51,9 @@
         getEntityManager().persist(o1);
         getEntityManager().getTransaction().commit();
 
-        // TODO: andrus 8/10/2006 - fails
-        // assertEquals("p1", ItestDBUtils.getSingleValue(
-        // "EmbeddedImpliedEntity",
-        // "property1"));
+        assertEquals("p1", ItestDBUtils.getObject(
+                "EmbeddedImpliedEntity",
+                "property1"));
     }
 
     // TODO: andrus 8/10/2006 - fails
@@ -188,7 +188,7 @@
     }
 
     // TODO: andrus 8/10/2006 - fails
-    public void _testOtherDefaults() throws Exception {
+    public void testOtherDefaults() throws Exception {
         ItestDBUtils.deleteAll("PropertyDefaultsOtherEntity");
 
         PropertyDefaultsOtherEntity o1 = new PropertyDefaultsOtherEntity();
@@ -244,7 +244,7 @@
         assertEquals("ab", ItestDBUtils.getObject(
                 "PropertyDefaultsOtherEntity",
                 "charWrapperArray"));
-        assertEquals(2, ItestDBUtils.getInt("PropertyDefaultsOtherEntity", "enumType"));
+        assertEquals(1, ItestDBUtils.getInt("PropertyDefaultsOtherEntity", "enumType"));
 
         byte[] ser = ItestDBUtils.getBytes(
                 "PropertyDefaultsOtherEntity",



Mime
View raw message