📄 testhsqldb.java
字号:
package test.org.mandarax.sql;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import junit.framework.TestCase;
import org.mandarax.sql.DefaultConnectionManager;
/**
* Test suite for the HSqlDB embedded database.
*
* @author <a href="mailto:jochen.hiller@bauer-partner.com">Jochen Hiller </a>
*/
public class TestHSqlDB extends TestCase {
public TestHSqlDB(String arg0) {
super(arg0);
}
public static void main(String[] args) {
junit.textui.TestRunner.run(TestHSqlDB.class);
}
// tests
/**
* Tests HSqlDB in standalone mode, means runs in same VM.
*/
public void testStandaloneMode() throws SQLException, ClassNotFoundException {
/* Connection c = DriverManager.getConnection ("jdbc:hsqldb:testdb", "sa", "");
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:
Connection c = DriverManager.getConnection ("jdbc:hsqldb:/opt/db/testdb", "sa", "");
*/ }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -