testhsqldb.java
来自「Mandarax是一个规则引擎的纯Java实现。它支持多类型的事实和基于反映的规」· Java 代码 · 共 38 行
JAVA
38 行
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 + =
减小字号Ctrl + -
显示快捷键?