Skip to main content
summaryrefslogtreecommitdiffstats
blob: f981894e40bc4cda757171e4d22ff3f11c1235da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
 * Copyright (c) 2004 - 2010 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.h2.jdbcx.JdbcDataSource;

/**
 * @author Stefan Winkler
 */
public class H2Test extends AbstractCapabilityTest
{
  public H2Test()
  {
    super("h2");
    JdbcDataSource h2ds = new JdbcDataSource();
    h2ds = new JdbcDataSource();
    h2ds.setURL("jdbc:h2:file:c:/temp/h2test");
    h2ds.setUser("sa");
    provider = DBUtil.createConnectionProvider(h2ds);
  }

  IDBConnectionProvider provider = null;

  @Override
  protected IDBConnectionProvider getConnectionProvider()
  {
    return provider;
  }
}

Back to the top