use of com.google.refine.extension.database.model.DatabaseInfo in project OpenRefine by OpenRefine.
the class PgSQLDatabaseServiceTest method testExecuteQuery.
@Test
public void testExecuteQuery() throws DatabaseServiceException {
PgSQLDatabaseService pgSqlService = (PgSQLDatabaseService) DatabaseService.get(PgSQLDatabaseService.DB_NAME);
DatabaseInfo databaseInfo = pgSqlService.testQuery(testDbConfig, "SELECT * FROM " + testTable);
Assert.assertNotNull(databaseInfo);
}
use of com.google.refine.extension.database.model.DatabaseInfo in project OpenRefine by OpenRefine.
the class DatabaseServiceTest method testExecuteQuery.
@Test(groups = { "requiresMySQL" })
public void testExecuteQuery() throws DatabaseServiceException {
DatabaseService dbService = DatabaseService.get(testDbConfig.getDatabaseType());
DatabaseInfo databaseInfo = dbService.testQuery(testDbConfig, "SELECT * FROM " + testTable);
Assert.assertNotNull(databaseInfo);
}
use of com.google.refine.extension.database.model.DatabaseInfo in project OpenRefine by OpenRefine.
the class DatabaseServiceTest method testConnect.
@Test(groups = { "requiresMySQL" })
public void testConnect() throws DatabaseServiceException {
DatabaseService dbService = DatabaseService.get(testDbConfig.getDatabaseType());
DatabaseInfo databaseInfo = dbService.connect(testDbConfig);
Assert.assertNotNull(databaseInfo);
}
use of com.google.refine.extension.database.model.DatabaseInfo in project OpenRefine by OpenRefine.
the class MariaDBDatabaseServiceTest method testExecuteQuery.
@Test
public void testExecuteQuery() throws DatabaseServiceException {
MariaDBDatabaseService pgSqlService = (MariaDBDatabaseService) DatabaseService.get(MariaDBDatabaseService.DB_NAME);
DatabaseInfo databaseInfo = pgSqlService.testQuery(testDbConfig, "SELECT * FROM " + testTable);
Assert.assertNotNull(databaseInfo);
}
use of com.google.refine.extension.database.model.DatabaseInfo in project OpenRefine by OpenRefine.
the class PgSQLDatabaseServiceTest method testConnect.
@Test
public void testConnect() throws DatabaseServiceException {
PgSQLDatabaseService pgSqlService = (PgSQLDatabaseService) DatabaseService.get(PgSQLDatabaseService.DB_NAME);
DatabaseInfo databaseInfo = pgSqlService.connect(testDbConfig);
Assert.assertNotNull(databaseInfo);
}
Aggregations