protected void setUp() throws Exception { super.setUp(); String config = getClass().getResource(JDO_CONF_FILE).toString(); JDOManager.loadConfiguration(config, getClass().getClassLoader()); _jdo = JDOManager.createInstance(DATABASE_NAME); }
public static Test suite() throws Exception { String config = TestRemove.class.getResource(JDO_CONF_FILE).toString(); JDOManager.loadConfiguration(config, TestRemove.class.getClassLoader()); TestSuite suite = new TestSuite("Remove ptf.jdo.rel1toN test objects"); suite.addTest(new TestRemove("testRemoveService")); suite.addTest(new TestRemove("testRemoveEquipment")); suite.addTest(new TestRemove("testRemoveType")); suite.addTest(new TestRemove("testRemoveSupplier")); suite.addTest(new TestRemove("testRemoveReason")); suite.addTest(new TestRemove("testRemoveDepartment")); suite.addTest(new TestRemove("testRemoveState")); return suite; }
public static Test suite() throws Exception { String config = TestLoadUni1toN.class.getResource(JDO_CONF_FILE).toString(); JDOManager.loadConfiguration(config, TestLoadUni1toN.class.getClassLoader()); TestSuite suite = new TestSuite("Test load 1:n with unidirectional mapping"); suite.addTest(new TestLoadUni1toN("testReadWriteEmpty")); suite.addTest(new TestLoadUni1toN("testReadWriteCached")); suite.addTest(new TestLoadUni1toN("testReadWriteOidEmpty")); suite.addTest(new TestLoadUni1toN("testReadWriteOidCached")); suite.addTest(new TestLoadUni1toN("testReadOnlyEmpty")); suite.addTest(new TestLoadUni1toN("testReadOnlyCached")); suite.addTest(new TestLoadUni1toN("testReadOnlyOidEmpty")); suite.addTest(new TestLoadUni1toN("testReadOnlyOidCached")); suite.addTest(new TestLoadUni1toN("testReadOnlyOidOnly")); return suite; }