Liferay 7.0-ce-b4

com.liferay.portal.test.rule.callback
Class HypersonicServerTestCallback

java.lang.Object
  extended by com.liferay.portal.kernel.test.rule.callback.BaseTestCallback<org.hsqldb.server.Server,Object>
      extended by com.liferay.portal.test.rule.callback.HypersonicServerTestCallback
All Implemented Interfaces:
TestCallback<org.hsqldb.server.Server,Object>

public class HypersonicServerTestCallback
extends BaseTestCallback<org.hsqldb.server.Server,Object>


Field Summary
static String DATABASE_URL_BASE
           
 
Constructor Summary
HypersonicServerTestCallback(String databaseName)
           
 
Method Summary
 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, java.nio.file.Path fromFolderPath, java.nio.file.Path toFolderPath)
           
protected  void deleteFolder(java.nio.file.Path folderPath)
           
 
Methods inherited from class com.liferay.portal.kernel.test.rule.callback.BaseTestCallback
afterMethod, beforeMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATABASE_URL_BASE

public static final String DATABASE_URL_BASE
See Also:
Constant Field Values
Constructor Detail

HypersonicServerTestCallback

public HypersonicServerTestCallback(String databaseName)
Method Detail

afterClass

public void afterClass(org.junit.runner.Description description,
                       org.hsqldb.server.Server server)
                throws Exception
Specified by:
afterClass in interface TestCallback<org.hsqldb.server.Server,Object>
Overrides:
afterClass in class BaseTestCallback<org.hsqldb.server.Server,Object>
Throws:
Exception

beforeClass

public org.hsqldb.server.Server beforeClass(org.junit.runner.Description description)
                                     throws Exception
Specified by:
beforeClass in interface TestCallback<org.hsqldb.server.Server,Object>
Overrides:
beforeClass in class BaseTestCallback<org.hsqldb.server.Server,Object>
Throws:
Exception

copyFile

protected void copyFile(String fileName,
                        java.nio.file.Path fromFolderPath,
                        java.nio.file.Path toFolderPath)
                 throws IOException
Throws:
IOException

deleteFolder

protected void deleteFolder(java.nio.file.Path folderPath)
                     throws IOException
Throws:
IOException

Liferay 7.0-ce-b4