public abstract class DatabaseWrapper extends Object
DatabaseTestSystem
so that HOW the database is interacted with is independent of WHAT we do with that connection.
For example, the same setup logic can be applied regardless of whether the wrapped database is accessed via JdbcDatabaseWrapper
or DockerDatabaseWrapper
.Constructor and Description |
---|
DatabaseWrapper() |
Modifier and Type | Method and Description |
---|---|
abstract String |
describe()
Describes the configuration of this wrapper.
|
abstract String |
getUrl() |
abstract String |
getUsername() |
abstract void |
start()
Start the database if possible and ensure it can be connected to.
|
abstract void |
stop()
Stop the database if possible.
|
public abstract void start() throws Exception
Exception
public abstract void stop() throws Exception
Exception
public abstract String getUsername()
public abstract String getUrl()
public abstract String describe()
Copyright © 2023 Liquibase.org. All rights reserved.