1 package org.simantics.db.testing.impl;
4 import org.simantics.db.Session;
5 import org.simantics.db.exception.DatabaseException;
6 import org.simantics.db.service.LifecycleSupport;
7 import org.simantics.db.testing.common.Tests;
9 public class BaseClient {
10 protected static final boolean DEBUG = false;
11 // protected static final String HOST = Configuration.get().host;
12 // protected final int PORT = Configuration.get().port;
13 // protected static final String USERNAME = Configuration.get().username;
14 // protected static final String PASSWORD = Configuration.get().password;
15 // protected Driver driver;
16 protected Session session;
17 protected final String random;
18 public BaseClient(String name)
19 throws DatabaseException {
21 session = Tests.getTestHandler().getSession();
23 public void close() throws DatabaseException {
25 if (null != session) {
26 LifecycleSupport ls = session.getService(LifecycleSupport.class);
33 public Session getSession() {