diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/capabilities/HsqlTest.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/capabilities/HsqlTest.java | 79 |
1 files changed, 39 insertions, 40 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/capabilities/HsqlTest.java b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/capabilities/HsqlTest.java index 4425a55115..611ea264bf 100644 --- a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/capabilities/HsqlTest.java +++ b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/capabilities/HsqlTest.java @@ -1,40 +1,39 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.db.capabilities;
-
-import org.eclipse.net4j.db.DBUtil;
-import org.eclipse.net4j.db.IDBConnectionProvider;
-
-import org.hsqldb.jdbc.jdbcDataSource;
-
-/**
- * @author Stefan Winkler
- */
-public class HsqlTest extends AbstractCapabilityTest
-{
- private IDBConnectionProvider provider;
-
- public HsqlTest()
- {
- super("hsqldb");
- jdbcDataSource hsqlds = new jdbcDataSource();
- hsqlds.setDatabase("jdbc:hsqldb:file:c:/temp/hsql_test");
- hsqlds.setUser("sa");
-
- provider = DBUtil.createConnectionProvider(hsqlds);
- }
-
- @Override
- protected IDBConnectionProvider getConnectionProvider()
- {
- return provider;
- }
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.db.capabilities; + +import org.eclipse.net4j.db.DBUtil; +import org.eclipse.net4j.db.IDBConnectionProvider; +import org.eclipse.net4j.db.hsqldb.HSQLDBDataSource; + +/** + * @author Stefan Winkler + */ +public class HsqlTest extends AbstractCapabilityTest +{ + private IDBConnectionProvider provider; + + public HsqlTest() + { + super("hsqldb"); + HSQLDBDataSource hsqlds = new HSQLDBDataSource(); + hsqlds.setDatabase("jdbc:hsqldb:file:c:/temp/hsql_test"); + hsqlds.setUser("sa"); + + provider = DBUtil.createConnectionProvider(hsqlds); + } + + @Override + protected IDBConnectionProvider getConnectionProvider() + { + return provider; + } +} |