public class HypersonicServerTestCallback
extends com.liferay.portal.kernel.test.rule.callback.BaseTestCallback<org.hsqldb.server.Server,Object>
Modifier and Type | Field and Description |
---|---|
static String |
DATABASE_URL_BASE |
Constructor and Description |
---|
HypersonicServerTestCallback(String databaseName) |
Modifier and Type | Method and Description |
---|---|
void |
afterClass(org.junit.runner.Description description,
org.hsqldb.server.Server server) |
org.hsqldb.server.Server |
beforeClass(org.junit.runner.Description description) |
protected void |
copyFile(String fileName,
Path fromFolderPath,
Path toFolderPath) |
protected void |
deleteFolder(Path folderPath) |
public static final String DATABASE_URL_BASE
public HypersonicServerTestCallback(String databaseName)
public void afterClass(org.junit.runner.Description description, org.hsqldb.server.Server server) throws Exception
afterClass
in interface com.liferay.portal.kernel.test.rule.callback.TestCallback<org.hsqldb.server.Server,Object>
afterClass
in class com.liferay.portal.kernel.test.rule.callback.BaseTestCallback<org.hsqldb.server.Server,Object>
Exception
public org.hsqldb.server.Server beforeClass(org.junit.runner.Description description) throws Exception
beforeClass
in interface com.liferay.portal.kernel.test.rule.callback.TestCallback<org.hsqldb.server.Server,Object>
beforeClass
in class com.liferay.portal.kernel.test.rule.callback.BaseTestCallback<org.hsqldb.server.Server,Object>
Exception
protected void copyFile(String fileName, Path fromFolderPath, Path toFolderPath) throws IOException
IOException
protected void deleteFolder(Path folderPath) throws IOException
IOException