OPENJPA-930: fix test case error caused by

TestAttrOverridesXml

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748296 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Fay Wang 2009-02-26 20:51:51 +00:00
parent 75cf4c522f
commit d22fc6ab7c
1 changed files with 1 additions and 1 deletions

View File

@ -57,10 +57,10 @@ public class TestXmlOverrideEntity extends SingleEMFTestCase {
} }
public void testOverriddenEntityName() { public void testOverriddenEntityName() {
emf.createEntityManager().close();
ClassMetaData meta = JPAFacadeHelper.getMetaData(emf, ClassMetaData meta = JPAFacadeHelper.getMetaData(emf,
XmlOverrideEntity.class); XmlOverrideEntity.class);
assertEquals("XmlOverride", meta.getTypeAlias()); assertEquals("XmlOverride", meta.getTypeAlias());
emf.createEntityManager().close();
MetaDataRepository repo = emf.getConfiguration() MetaDataRepository repo = emf.getConfiguration()
.getMetaDataRepositoryInstance(); .getMetaDataRepositoryInstance();
assertEquals(meta, repo.getMetaData("XmlOverride", assertEquals(meta, repo.getMetaData("XmlOverride",