use of com.axway.ats.core.dbaccess.mysql.DbConnMySQL in project ats-framework by Axway.
the class Test_EnvrionmentHandlerFactory method createDbBackupHandlerPositive.
@Test
public void createDbBackupHandlerPositive() {
EnvironmentHandlerFactory factory = EnvironmentHandlerFactory.getInstance();
assertEquals(MysqlEnvironmentHandler.class, factory.createDbBackupHandler(new DbConnMySQL("host", "db", "user", "pass")).getClass());
assertEquals(OracleEnvironmentHandler.class, factory.createDbBackupHandler(new DbConnOracle("host", "db", "user", "pass")).getClass());
}
use of com.axway.ats.core.dbaccess.mysql.DbConnMySQL in project ats-framework by Axway.
the class MockDbEnvironmentUnit method getTestComponent.
private Component getTestComponent() {
Component testComponent = new Component(COMPONENT_NAME);
Map<String, Object> customProperties = new HashMap<String, Object>();
customProperties.put(DbKeys.PORT_KEY, 3306);
List<EnvironmentUnit> environmentUnits = new ArrayList<EnvironmentUnit>();
environmentUnits.add(new MockDbEnvironmentUnit(new DbConnMySQL("host_1", "db_1", "user_1", "password_1", customProperties)));
testComponent.setEnvironments(Arrays.asList(new ComponentEnvironment(COMPONENT_NAME, null, environmentUnits, "backupFolder")));
return testComponent;
}
Aggregations