Class MSSQLTestSystem
- java.lang.Object
-
- liquibase.extension.testing.testsystem.TestSystem
-
- liquibase.extension.testing.testsystem.DatabaseTestSystem
-
- liquibase.extension.testing.testsystem.core.MSSQLTestSystem
-
- All Implemented Interfaces:
Plugin
,org.junit.rules.TestRule
public class MSSQLTestSystem extends DatabaseTestSystem
-
-
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
wrapper
-
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
-
-
Constructor Summary
Constructors Constructor Description MSSQLTestSystem()
MSSQLTestSystem(TestSystem.Definition definition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull DatabaseWrapper
createContainerWrapper()
String
getCollation()
String
getConnectionUrl()
Return the url used to connect to this database.protected String[]
getSetupSql()
Define SQL to run byDatabaseTestSystem.setup()
void
setCollation(String collation)
-
Methods inherited from class liquibase.extension.testing.testsystem.DatabaseTestSystem
createJdbcWrapper, createWrapper, execute, execute, executeInverses, executeSql, getAltCatalog, getAltSchema, getAltTablespace, getCatalog, getConnection, getConnection, getConnection, getDatabaseFromFactory, getDriver, getDriverJar, getImageName, getPassword, getSetupPassword, getSetupUsername, getUsername, getVersion, openSetupConnection, setup, start, stop
-
Methods inherited from class liquibase.extension.testing.testsystem.TestSystem
apply, getConfigurationKeys, getConfiguredValue, getConfiguredValue, getConfiguredValue, getDefinition, getEnabledTestSystems, getKeepRunning, getPriority, shouldTest, toString
-
-
-
-
Constructor Detail
-
MSSQLTestSystem
public MSSQLTestSystem()
-
MSSQLTestSystem
public MSSQLTestSystem(TestSystem.Definition definition)
-
-
Method Detail
-
createContainerWrapper
@NotNull protected @NotNull DatabaseWrapper createContainerWrapper()
- Specified by:
createContainerWrapper
in classDatabaseTestSystem
-
getConnectionUrl
public String getConnectionUrl()
Description copied from class:DatabaseTestSystem
Return the url used to connect to this database. NOTE: this may be different than the 'url' configured value because the TestSystem implementations are free to tweak and control this URL based on other settings.- Overrides:
getConnectionUrl
in classDatabaseTestSystem
-
getSetupSql
protected String[] getSetupSql()
Description copied from class:DatabaseTestSystem
Define SQL to run byDatabaseTestSystem.setup()
- Specified by:
getSetupSql
in classDatabaseTestSystem
-
getCollation
public String getCollation()
-
setCollation
public void setCollation(String collation)
-
-