openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fayw...@apache.org
Subject svn commit: r811754 - in /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence: datacache/TestDataCacheBehavesIdentical.java inheritance/TestDefaultInheritanceStrategy.java
Date Sun, 06 Sep 2009 04:01:29 GMT
Author: faywang
Date: Sun Sep  6 04:01:29 2009
New Revision: 811754

URL: http://svn.apache.org/viewvc?rev=811754&view=rev
Log:
fix test case problem for MySQL

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheBehavesIdentical.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/TestDefaultInheritanceStrategy.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheBehavesIdentical.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheBehavesIdentical.java?rev=811754&r1=811753&r2=811754&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheBehavesIdentical.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheBehavesIdentical.java
Sun Sep  6 04:01:29 2009
@@ -316,7 +316,7 @@
         // Modify the record in the database in a separate transaction using
         // native SQL so that the in-memory instance is not altered 
         em.getTransaction().begin();
-        String sql = "UPDATE POBJECT SET NAME='" + MARKER_DATABASE
+        String sql = "UPDATE PObject SET NAME='" + MARKER_DATABASE
         + "' WHERE id=" + oid;
         em.createNativeQuery(sql).executeUpdate();
         em.getTransaction().commit();

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/TestDefaultInheritanceStrategy.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/TestDefaultInheritanceStrategy.java?rev=811754&r1=811753&r2=811754&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/TestDefaultInheritanceStrategy.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/TestDefaultInheritanceStrategy.java
Sun Sep  6 04:01:29 2009
@@ -122,7 +122,7 @@
 
         em.clear();
         
-        verifyDtypeColumnEntriesAndMapping(em, "BASECLASS", 4, BaseClass.class);
+        verifyDtypeColumnEntriesAndMapping(em, "BaseClass", 4, BaseClass.class);
                 
         verifyInheritanceQueryResult(em, "SubclassA", 
             classArray(SubclassA.class), 0, 1);
@@ -309,7 +309,7 @@
         verifyNoDypeColumn(em, "SubclassF");
 
         // Verify that the base class does contain a discriminator column
-        verifyDtypeColumnEntriesAndMapping(em, "BASECLASS3", 2, 
+        verifyDtypeColumnEntriesAndMapping(em, "BaseClass3", 2, 
             BaseClass3.class);
 
         // Query the subclass table.  Make sure the counts are correct and
@@ -356,7 +356,7 @@
 
         em.clear();
         
-        verifyDtypeColumnEntriesAndMapping(em, "BASECLASS4", 2, 
+        verifyDtypeColumnEntriesAndMapping(em, "BaseClass4", 2, 
             BaseClass4.class);
 
         // Verify that the subclass table does not contain a discriminator
@@ -413,7 +413,7 @@
         
         em.clear();
 
-        verifyDtypeColumnEntriesAndMapping(em, "BASECLASS5", 3, 
+        verifyDtypeColumnEntriesAndMapping(em, "BaseClass5", 3, 
                 BaseClass5.class);
 
         // Verify that the midclass table does not contain a discriminator
@@ -491,7 +491,7 @@
         
         em.clear();
 
-        verifyDtypeColumnEntriesAndMapping(em, "ABSTRACTCLASS", 2, 
+        verifyDtypeColumnEntriesAndMapping(em, "AbstractClass", 2, 
                 AbstractClass.class);
 
         // Verify that the midclass table does not contain a discriminator
@@ -543,7 +543,7 @@
         
         em.clear();
         
-        verifyDtypeColumnEntriesAndMapping(em, "BASECLASS6", 2, 
+        verifyDtypeColumnEntriesAndMapping(em, "BaseClass6", 2, 
                 BaseClass6.class);
 
         // Verify that the subclass table does not contain a discriminator



Mime
View raw message