private Uby createDB() throws DocumentException, IllegalArgumentException, FileNotFoundException { String uby_user = "root"; String uby_pass = "pass"; DBConfig dbConfig = // new DBConfig("not_important","org.h2.Driver","h2",uby_user,uby_pass,true); new DBConfig("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1","org.h2.Driver",UBYH2Dialect.class.getName(),uby_user,uby_pass,true); LMFDBUtils.createTables(dbConfig); XMLToDBTransformer trans = new XMLToDBTransformer(dbConfig); trans.transform(new File("src/main/resources/UbyTestLexicon.xml"),"UbyTest"); Uby uby = new Uby(dbConfig); return uby; }
return new Uby(dbConfig);