Пример #1
0
  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    DriverManager.registerDriver(new org.h2.Driver());

    sm =
        StorageManagerFactory.getInstance(
            "org.h2.Driver", "sa", "", "jdbc:h2:mem:gsn_mem_db", Main.DEFAULT_MAX_DB_CONNECTIONS);
    //		StorageManager.getInstance ( ).initialize ( "com.mysql.jdbc.Driver","root","" ,
    // "jdbc:mysql://localhost/org.openiot.gsn");
  }
Пример #2
0
 @BeforeClass
 public static void setUpBeforeClass() throws Exception {
   DriverManager.registerDriver(new org.h2.Driver());
   sm =
       StorageManagerFactory.getInstance(
           "org.hsqldb.jdbcDriver",
           "sa",
           "",
           "jdbc:hsqldb:mem:.",
           Main.DEFAULT_MAX_DB_CONNECTIONS);
 }