public class TestDatabase extends Object
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
String |
getConnectionUrl() |
String |
getDatabase() |
String |
getHost() |
int |
getPort() |
static TestDatabase |
initialize() |
static TestDatabase |
initializeStandard() |
static void |
main(String[] args)
Starts up a test database in server mode.
|
void |
start()
Load driver, and create database, schema and data.
|
void |
stop()
Shut down the database server.
|
public static TestDatabase initialize()
public static TestDatabase initializeStandard()
public static void main(String[] args) throws Exception
args - Command-line argumentsExceptionpublic Connection getConnection() throws SQLException
SQLExceptionpublic String getConnectionUrl()
public String getDatabase()
public String getHost()
public int getPort()
public void start()
throws Exception
Exceptionpublic void stop()
Copyright © 2000-2024 Sualeh Fatehi. All rights reserved.