Class H2TestSystem
java.lang.Object
liquibase.extension.testing.testsystem.TestSystem
liquibase.extension.testing.testsystem.DatabaseTestSystem
liquibase.extension.testing.testsystem.core.H2TestSystem
- All Implemented Interfaces:
Plugin,org.junit.rules.TestRule
-
Nested Class Summary
Nested classes/interfaces inherited from class liquibase.extension.testing.testsystem.TestSystem
TestSystem.Definition -
Field Summary
Fields inherited from class liquibase.extension.testing.testsystem.DatabaseTestSystem
wrapperFields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DatabaseWrapperReturns the driver library to use.protected String[]Define SQL to run byDatabaseTestSystem.setup()Methods inherited from class liquibase.extension.testing.testsystem.DatabaseTestSystem
createJdbcWrapper, createWrapper, execute, execute, executeInverses, executeSql, getAltCatalog, getAltSchema, getAltTablespace, getCatalog, getConnection, getConnection, getConnection, getConnectionUrl, getDatabaseFromFactory, getDriver, getImageName, getPassword, getSetupPassword, getSetupUsername, getUsername, getVersion, openSetupConnection, setup, start, stopMethods inherited from class liquibase.extension.testing.testsystem.TestSystem
apply, getConfigurationKeys, getConfiguredValue, getConfiguredValue, getConfiguredValue, getDefinition, getEnabledTestSystems, getKeepRunning, getPriority, shouldTest, toString
-
Constructor Details
-
H2TestSystem
public H2TestSystem() -
H2TestSystem
-
-
Method Details
-
getDriverJar
Description copied from class:DatabaseTestSystemReturns the driver library to use. Supports maven-style coordinate, like "com.h2database:h2:1.4.200". Default implementation uses the "driverJar" testSystem configuration value.- Overrides:
getDriverJarin classDatabaseTestSystem
-
createContainerWrapper
- Specified by:
createContainerWrapperin classDatabaseTestSystem- Throws:
Exception
-
getSetupSql
Description copied from class:DatabaseTestSystemDefine SQL to run byDatabaseTestSystem.setup()- Specified by:
getSetupSqlin classDatabaseTestSystem
-