You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by mi...@apache.org on 2011/06/27 18:02:13 UTC
svn commit: r1140220 - in /openjpa/branches/2.0.x: ./
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestM2MInDataCache.java
Author: mikedd
Date: Mon Jun 27 16:02:13 2011
New Revision: 1140220
URL: http://svn.apache.org/viewvc?rev=1140220&view=rev
Log:
Remove try/catch that hides exception text in TestM2MInDataCache
Modified:
openjpa/branches/2.0.x/ (props changed)
openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestM2MInDataCache.java
Propchange: openjpa/branches/2.0.x/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Mon Jun 27 16:02:13 2011
@@ -1,2 +1,3 @@
/openjpa/branches/1.0.x:736493
+/openjpa/branches/1.2.x:1140217
/openjpa/trunk:934507,935033,935035,935073-935074,936436,936445,946726
Modified: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestM2MInDataCache.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestM2MInDataCache.java?rev=1140220&r1=1140219&r2=1140220&view=diff
==============================================================================
--- openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestM2MInDataCache.java (original)
+++ openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestM2MInDataCache.java Mon Jun 27 16:02:13 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();
}
}