01: package test.org.mandarax.sql;
02:
03: import java.sql.Connection;
04: import java.sql.DriverManager;
05: import java.sql.SQLException;
06:
07: import junit.framework.TestCase;
08:
09: import org.mandarax.sql.DefaultConnectionManager;
10:
11: /**
12: * Test suite for the HSqlDB embedded database.
13: *
14: * @author <a href="mailto:jochen.hiller@bauer-partner.com">Jochen Hiller </a>
15: */
16: public class TestHSqlDB extends TestCase {
17:
18: public TestHSqlDB(String arg0) {
19: super (arg0);
20: }
21:
22: public static void main(String[] args) {
23: junit.textui.TestRunner.run(TestHSqlDB.class);
24: }
25:
26: // tests
27:
28: /**
29: * Tests HSqlDB in standalone mode, means runs in same VM.
30: */
31: public void testStandaloneMode() throws SQLException,
32: ClassNotFoundException {
33: /* Connection c = DriverManager.getConnection ("jdbc:hsqldb:testdb", "sa", "");
34: The database file path format can be specified using forward slashes in Windows hosts as well as Linux hosts. So relative paths or paths that refer to the same directory on the same drive can be identical. For example if your database path in Linux is /opt/db/testdb and you create an identical directory structure on the C: drive of a Windows host, you can use the same URL in both Windows and Linux:
35:
36: Connection c = DriverManager.getConnection ("jdbc:hsqldb:/opt/db/testdb", "sa", "");
37: */}
38: }
|