1 package org.simantics.db.testing.base;
2 /*******************************************************************************
3 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
11 * VTT Technical Research Centre of Finland - initial API and implementation
12 *******************************************************************************/
15 import org.simantics.db.Resource;
17 abstract public class SimpleBase extends ExistingDatabaseTest {
18 protected Resource rl;
20 public void setUp() throws Exception {
22 rl = getSession().getRootLibrary();
24 // protected void reconnect()
25 // throws DatabaseException {
26 // getSessionHandler().close();
27 // // Close the old session and open a new one.
29 // Thread.sleep(1000); // milliseconds
30 // } catch (InterruptedException e) {
32 // getSessionHandler().connect();