From bbc296ba29c2c6dd5620934446fd71c8561db6e4 Mon Sep 17 00:00:00 2001 From: "Richard G. Curtis" Date: Sat, 16 Jan 2010 00:37:32 +0000 Subject: [PATCH] OPENJPA250: Fix testcase. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@899853 13f79535-47bb-0310-9956-ffa450edef68 --- .../persistence/meta/TestMetaDataRepository.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/TestMetaDataRepository.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/TestMetaDataRepository.java index 4b9aeef8c..22f9c95a5 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/TestMetaDataRepository.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/TestMetaDataRepository.java @@ -52,11 +52,13 @@ public class TestMetaDataRepository extends AbstractPersistenceTestCase { 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 aliases = mdr.getAliasNames(); - assertTrue(aliases.size() == numEntities); + assertTrue(aliases.contains("MdrTestEntity")); + +// assertTrue(aliases.size() == numEntities); QueryMetaData query = mdr.getCachedQueryMetaData(MdrTestEntity.class, "query"); assertNotNull(query);