From 50aaa9764abc4c606488b1c0493403a351b6a26a Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Wed, 2 Jul 2008 20:00:49 +0000 Subject: [PATCH] OPENJPA-647: Simple edit for 80-column format rule git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@673479 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/conf/TestDynamicConfiguration.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestDynamicConfiguration.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestDynamicConfiguration.java index 5cebd277b..e8949649b 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestDynamicConfiguration.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestDynamicConfiguration.java @@ -113,6 +113,8 @@ public class TestDynamicConfiguration extends SingleEMFTestCase { public void testClassMetaDataRecognizesDataCacheTimeoutValueChange() { OpenJPAConfiguration conf = emf.getConfiguration(); + + // ensure that PObject is in metadata repository EntityManager em = emf.createEntityManager(); em.getTransaction().begin(); PObject pc = new PObject(); @@ -120,7 +122,8 @@ public class TestDynamicConfiguration extends SingleEMFTestCase { int oldValue = conf.getDataCacheTimeout(); - ClassMetaData meta = conf.getMetaDataRepositoryInstance().getCachedMetaData(PObject.class); + ClassMetaData meta = conf.getMetaDataRepositoryInstance() + .getCachedMetaData(PObject.class); assertNotNull(meta); assertEquals(oldValue, meta.getDataCacheTimeout());