Search in sources :

Example 1 with ExampleCustomDatabase

use of liquibase.database.example.ExampleCustomDatabase in project liquibase by liquibase.

the class DatabaseTestContext method getAllDatabases.

public Set<Database> getAllDatabases() {
    if (allDatabases == null) {
        allDatabases = new HashSet<Database>();
        allDatabases.addAll(DatabaseFactory.getInstance().getImplementedDatabases());
        List<Database> toRemove = new ArrayList<Database>();
        for (Database database : allDatabases) {
            if (//todo: re-enable sqlite testing
            database instanceof SQLiteDatabase || database instanceof MockDatabase || database instanceof ExampleCustomDatabase) {
                toRemove.add(database);
            }
        }
        allDatabases.removeAll(toRemove);
    }
    return allDatabases;
}
Also used : SQLiteDatabase(liquibase.database.core.SQLiteDatabase) SQLiteDatabase(liquibase.database.core.SQLiteDatabase) DB2Database(liquibase.database.core.DB2Database) MockDatabase(liquibase.sdk.database.MockDatabase) ExampleCustomDatabase(liquibase.database.example.ExampleCustomDatabase) MockDatabase(liquibase.sdk.database.MockDatabase) ExampleCustomDatabase(liquibase.database.example.ExampleCustomDatabase)

Aggregations

DB2Database (liquibase.database.core.DB2Database)1 SQLiteDatabase (liquibase.database.core.SQLiteDatabase)1 ExampleCustomDatabase (liquibase.database.example.ExampleCustomDatabase)1 MockDatabase (liquibase.sdk.database.MockDatabase)1