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;
}
Aggregations