01: package org.xorm.tests;
02:
03: import org.xorm.XORM;
04: import javax.jdo.PersistenceManagerFactory;
05: import junit.framework.TestCase;
06:
07: public abstract class XORMTestCase extends TestCase {
08: public XORMTestCase(String name) {
09: super (name);
10: }
11:
12: public XORMTestCase() {
13: super ();
14: }
15:
16: protected PersistenceManagerFactory factory;
17:
18: public void setUp() {
19: factory = XORM.newPersistenceManagerFactory(this .getClass()
20: .getClassLoader());
21: }
22:
23: public void tearDown() {
24: factory = null;
25: }
26: }
|