db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r516630 - /db/jdo/trunk/api20/test/java/javax/jdo/spi/JDOImplHelperTest.java
Date Sat, 10 Mar 2007 01:05:10 GMT
Author: clr
Date: Fri Mar  9 17:05:09 2007
New Revision: 516630

URL: http://svn.apache.org/viewvc?view=rev&rev=516630
Log:
JDO-470 Add setUp method to JDOHelperTest to load PCPoint class

Modified:
    db/jdo/trunk/api20/test/java/javax/jdo/spi/JDOImplHelperTest.java

Modified: db/jdo/trunk/api20/test/java/javax/jdo/spi/JDOImplHelperTest.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api20/test/java/javax/jdo/spi/JDOImplHelperTest.java?view=diff&rev=516630&r1=516629&r2=516630
==============================================================================
--- db/jdo/trunk/api20/test/java/javax/jdo/spi/JDOImplHelperTest.java (original)
+++ db/jdo/trunk/api20/test/java/javax/jdo/spi/JDOImplHelperTest.java Fri Mar  9 17:05:09
2007
@@ -41,6 +41,12 @@
     }
 
     /** */
+    public void setUp() {
+        // make sure PCClass is loaded before any tests are run
+        PCPoint p = new PCPoint(1, new Integer(1));        
+    }
+
+    /** */
     public void testGetFieldNames() {
         JDOImplHelper implHelper = JDOImplHelper.getInstance();
         String[] fieldNames = implHelper.getFieldNames(PCPoint.class);
@@ -129,8 +135,6 @@
     /** */
     public void testClassRegistration() {
         JDOImplHelper implHelper = JDOImplHelper.getInstance();
-        // make sure PCClass is loaded
-        PCPoint p = new PCPoint(1, new Integer(1));
 
         Collection registeredClasses = implHelper.getRegisteredClasses();
         // test whether PCPoint is registered



Mime
View raw message