use of com.axway.ats.environment.database.EnvironmentHandlerFactory in project ats-framework by Axway.
the class Test_EnvrionmentHandlerFactory method createDbRestoreHandlerPositive.
@Test
public void createDbRestoreHandlerPositive() {
EnvironmentHandlerFactory factory = EnvironmentHandlerFactory.getInstance();
assertEquals(MysqlEnvironmentHandler.class, factory.createDbRestoreHandler(new DbConnMySQL("host", "db", "user", "pass")).getClass());
assertEquals(OracleEnvironmentHandler.class, factory.createDbRestoreHandler(new DbConnOracle("host", "db", "user", "pass")).getClass());
}
use of com.axway.ats.environment.database.EnvironmentHandlerFactory 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());
}
Aggregations