openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r1140217 - /openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestM2MInDataCache.java
Date Mon, 27 Jun 2011 15:59:11 GMT
Author: mikedd
Date: Mon Jun 27 15:59:11 2011
New Revision: 1140217

URL: http://svn.apache.org/viewvc?rev=1140217&view=rev
Log:
Remove try/catch that hides exception text in TestM2MInDataCache

Modified:
    openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestM2MInDataCache.java

Modified: openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestM2MInDataCache.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestM2MInDataCache.java?rev=1140217&r1=1140216&r2=1140217&view=diff
==============================================================================
--- openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestM2MInDataCache.java
(original)
+++ openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestM2MInDataCache.java
Mon Jun 27 15:59:11 2011
@@ -70,17 +70,13 @@ public class TestM2MInDataCache extends 
         em.close();
 
         em = emf.createEntityManager();
-        try {
-            M2MEntityE e1a = em.find(M2MEntityE.class, 1);
-            Map entityf1 = e1a.getEntityF();
-            M2MEntityE e2a = em.find(M2MEntityE.class, 2);
-            Map entityf2 = e2a.getEntityF();
-            M2MEntityF f1a = em.find(M2MEntityF.class, 10);
-            Map entitye1 = f1a.getEntityE();
-            M2MEntityF f2a = em.find(M2MEntityF.class, 20);
-            Map entitye2 = f2a.getEntityE();
-        } catch (Exception e) {
-            fail("Fail to get a Map field when DataCache is on");
-        }
+        M2MEntityE e1a = em.find(M2MEntityE.class, 1);
+        Map entityf1 = e1a.getEntityF();
+        M2MEntityE e2a = em.find(M2MEntityE.class, 2);
+        Map entityf2 = e2a.getEntityF();
+        M2MEntityF f1a = em.find(M2MEntityF.class, 10);
+        Map entitye1 = f1a.getEntityE();
+        M2MEntityF f2a = em.find(M2MEntityF.class, 20);
+        Map entitye2 = f2a.getEntityE();
     }
 }



Mime
View raw message