/** * Close this TagManager. Only used for tests. * * @throws ObjectStoreException in exceptional circumstances */ public void close() throws ObjectStoreException { try { osWriter.close(); } catch (Throwable e) { //LOG.info("tried to close the db connection", e); } }
/** * Close this TagManager. Only used for tests. * * @throws ObjectStoreException in exceptional circumstances */ public void close() throws ObjectStoreException { try { osWriter.close(); } catch (Throwable e) { //LOG.info("tried to close the db connection", e); } }
/** * {@inheritDoc} */ public void close() throws ObjectStoreException { osw.close(); beof.close(lastSource); eof.close(lastSource); }
@After public void teardown() throws ObjectStoreException { if (osw != null) { osw.close(); } }
@After public void teardown() throws ObjectStoreException { if (osw != null) { osw.close(); } }
@After public void teardown() throws ObjectStoreException { if (osw != null) { osw.close(); } }
@After public void teardown() throws ObjectStoreException { if (osw != null) { osw.close(); } }
@Override public void tearDown() throws Exception { removeProfile(); uosw.close(); super.tearDown(); }
public void tearDown() throws Exception { Iterator deleteIter = toDelete.iterator(); while (deleteIter.hasNext()) { InterMineObject o = (InterMineObject) deleteIter.next(); writer.delete(o); } if (file != null) { file.delete(); } loader.close(); writer.close(); }
protected void tearDown() throws Exception { super.tearDown(); removeTracks(); ((ObjectStoreWriterInterMineImpl) uosw).releaseConnection(con); con.close(); uosw.close(); }
public void tearDown() throws Exception { ObjectStoreTestUtils.deleteAllObjectsInStore(storeDataWriter); if (storeDataWriter != null) { storeDataWriter.close(); } super.tearDown(); }
@After public void tearDown() throws Exception { removeUserProfile(profile.getUsername()); uosw.close(); }
public void tearDown() throws Exception { super.tearDown(); ObjectStoreTestUtils.deleteAllObjectsInStore(storeDataWriter); if (storeDataWriter != null) { storeDataWriter.close(); } SearchRepository.clearGlobalRepositories(); }
private void deleteAddress() throws ObjectStoreException { ObjectStoreWriter osw = os.getNewWriter(); osw.delete(os.getObjectById(ADDRESS_ID)); osw.close(); } }
@AfterClass public static void shutdown() throws Exception { try { osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); ObjectStoreTestUtils.deleteAllObjectsInStore(osw); } finally { osw.close(); } }
private void storeAddress() throws ObjectStoreException { ObjectStoreWriter osw = os.getNewWriter(); Address address1 = DynamicUtil.createObject(Address.class); address1.setId(ADDRESS_ID); osw.store(address1); osw.close(); }
@After public void teardown() throws Exception { profile.deleteTemplate("template", null, true); removeUserProfile(profile.getUsername()); uosw.close(); }
@BeforeClass public static void setUp() throws Exception { ObjectStoreWriter osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); Map data = ObjectStoreTestUtils.getTestData("testmodel", "testmodel_data.xml"); ObjectStoreTestUtils.storeData(osw, data); osw.close(); }
@Before public void setUp() throws Exception { ObjectStoreWriter osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); os = osw.getObjectStore(); Map data = ObjectStoreTestUtils.getTestData("testmodel", "testmodel_data.xml"); ObjectStoreTestUtils.storeData(osw, data); osw.close(); }
@BeforeClass public static void setUp() throws Exception { ObjectStoreWriter osw = ObjectStoreWriterFactory.getObjectStoreWriter("osw.unittest"); os = osw.getObjectStore(); Map data = ObjectStoreTestUtils.getTestData("testmodel", "testmodel_data.xml"); ObjectStoreTestUtils.storeData(osw, data); osw.close(); }