Search in sources :

Example 1 with MockMigrationHandler

use of com.emc.storageos.db.server.upgrade.MockMigrationHandler in project coprhd-controller by CoprHD.

the class DbsvcTestBase method getMigrationHandler.

private static MigrationHandlerImpl getMigrationHandler(boolean createMockHandler, String[] pkgsArray) {
    MigrationHandlerImpl handler = null;
    if (createMockHandler) {
        handler = new MockMigrationHandler();
    } else {
        handler = new MigrationHandlerImpl();
    }
    handler.setPackages(pkgsArray);
    handler.setService(service);
    handler.setStatusChecker(statusChecker);
    handler.setCoordinator(_coordinator);
    handler.setDbClient(_dbClient);
    handler.setSchemaUtil(schemaUtil);
    handler.setPackages(pkgsArray);
    handler.setCustomMigrationCallbacks(customMigrationCallbacks);
    return handler;
}
Also used : MigrationHandlerImpl(com.emc.storageos.db.server.impl.MigrationHandlerImpl) MockMigrationHandler(com.emc.storageos.db.server.upgrade.MockMigrationHandler)

Aggregations

MigrationHandlerImpl (com.emc.storageos.db.server.impl.MigrationHandlerImpl)1 MockMigrationHandler (com.emc.storageos.db.server.upgrade.MockMigrationHandler)1