Using TimesTen for JUnit tests
447663Jul 20 2005 — edited Jul 21 2005I want to switch from using HSQL (in memory) to TimesTen in my Unit tests. Is there a simple setup for TimesTen when used for this purpose?
For example, for HSQL, all I have to do is include the hsql.jar as a dependency in my project, then include the following line in my JUnit test:
DataSource dataSource = new DriverManagerDataSource("org.hsqldb.jdbcDriver",
"jdbc:hsqldb:target/test-classes/com/project/path/test/schema", user, pw);
schema is a reference to the schema.script that includes the DDL for all the tables that I need to create in memory.
Can anyone help me out? Thanks.