]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.testing/src/org/simantics/db/testing/base/SimpleBase.java
Added missing org.simantics.db.{tests,testing} plug-ins.
[simantics/platform.git] / bundles / org.simantics.db.testing / src / org / simantics / db / testing / base / SimpleBase.java
1 package org.simantics.db.testing.base;
2 /*******************************************************************************
3  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4  * in Industry THTH ry.
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
9  *
10  * Contributors:
11  *     VTT Technical Research Centre of Finland - initial API and implementation
12  *******************************************************************************/
13
14
15 import org.simantics.db.Resource;
16
17 abstract public class SimpleBase extends ExistingDatabaseTest {
18     protected Resource rl;
19     @Override
20     public void setUp() throws Exception {
21         super.setUp();
22         rl = getSession().getRootLibrary();
23     }
24 //    protected void reconnect()
25 //    throws DatabaseException {
26 //        getSessionHandler().close();
27 //        // Close the old session and open a new one.
28 //        try {
29 //            Thread.sleep(1000); // milliseconds
30 //        } catch (InterruptedException e) {
31 //        }
32 //        getSessionHandler().connect();
33 //    }
34 }