openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r899853 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/TestMetaDataRepository.java
Date Sat, 16 Jan 2010 00:37:32 GMT
Author: curtisr7
Date: Sat Jan 16 00:37:32 2010
New Revision: 899853

URL: http://svn.apache.org/viewvc?rev=899853&view=rev
Log:
OPENJPA250: Fix testcase.

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/TestMetaDataRepository.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/TestMetaDataRepository.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/TestMetaDataRepository.java?rev=899853&r1=899852&r2=899853&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/TestMetaDataRepository.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/TestMetaDataRepository.java
Sat Jan 16 00:37:32 2010
@@ -52,11 +52,13 @@
             assertNotNull(metadata);
 
             // Make sure that there is an alias registered
-            int numEntities =
-                mdr.getPersistentTypeNames(false,
-                    AccessController.doPrivileged(J2DoPrivHelper.getContextClassLoaderAction())).size();
+//            int numEntities =
+//                mdr.getPersistentTypeNames(false,
+//                    AccessController.doPrivileged(J2DoPrivHelper.getContextClassLoaderAction())).size();
             Collection<String> aliases = mdr.getAliasNames();
-            assertTrue(aliases.size() == numEntities);
+            assertTrue(aliases.contains("MdrTestEntity"));
+
+//            assertTrue(aliases.size() == numEntities);
 
             QueryMetaData query = mdr.getCachedQueryMetaData(MdrTestEntity.class, "query");
             assertNotNull(query);



Mime
View raw message