use of com.amazonaws.athena.connectors.teradata.TeradataCompositeHandler in project aws-athena-query-federation by awslabs.
the class TeradataCompositeHandlerTest method teradataCompositeHandlerTest.
@Test
public void teradataCompositeHandlerTest() {
Exception ex = null;
try {
DatabaseConnectionConfig databaseConnectionConfig = new DatabaseConnectionConfig("testCatalog", TeradataConstants.TERADATA_NAME, "teradata://jdbc:teradata://hostname/user=dbc&password=dbc");
PowerMockito.mockStatic(JDBCUtil.class);
JDBCUtil tested = PowerMockito.mock(JDBCUtil.class);
PowerMockito.when(tested.getSingleDatabaseConfigFromEnv(TeradataConstants.TERADATA_NAME)).thenReturn(databaseConnectionConfig);
teradataCompositeHandler = new TeradataCompositeHandler();
assertEquals(teradataCompositeHandler.getClass(), TeradataCompositeHandler.class);
} catch (Exception e) {
ex = e;
}
assertEquals(null, ex);
}
Aggregations