diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMFTestCase.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMFTestCase.java index 278346c25..e75b4113d 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMFTestCase.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMFTestCase.java @@ -42,7 +42,7 @@ public abstract class SingleEMFTestCase protected OpenJPAEntityManagerFactorySPI emf; /** - * Call {@link #setUp(Object...)} with no arguments so that the emf + * Call {@link #setUp(Object... props)} with no arguments so that the emf * set-up happens even if setUp() is not called from the * subclass. */ @@ -152,4 +152,8 @@ public abstract class SingleEMFTestCase return emf.getConfiguration().getMetaDataRepositoryInstance() .getMetaData(t, null, true).getTypeAlias(); } + + protected ClassMapping [] getMappings() { + return (ClassMapping [] ) emf.getConfiguration().getMetaDataRepositoryInstance().getMetaDatas(); + } }