use of com.amazonaws.athena.connectors.oracle.OracleMuxRecordHandler in project aws-athena-query-federation by awslabs.
the class OracleMuxJdbcRecordHandlerTest method setup.
@Before
public void setup() {
this.oracleRecordHandler = Mockito.mock(OracleRecordHandler.class);
this.recordHandlerMap = Collections.singletonMap("oracle", this.oracleRecordHandler);
this.amazonS3 = Mockito.mock(AmazonS3.class);
this.secretsManager = Mockito.mock(AWSSecretsManager.class);
this.athena = Mockito.mock(AmazonAthena.class);
this.queryStatusChecker = Mockito.mock(QueryStatusChecker.class);
this.jdbcConnectionFactory = Mockito.mock(JdbcConnectionFactory.class);
DatabaseConnectionConfig databaseConnectionConfig = new DatabaseConnectionConfig("testCatalog", "oracle", "oracle://jdbc:oracle:thin:${testSecret}@//127.0.0.1:1521/orcl", "testSecret");
this.jdbcRecordHandler = new OracleMuxRecordHandler(this.amazonS3, this.secretsManager, this.athena, this.jdbcConnectionFactory, databaseConnectionConfig, this.recordHandlerMap);
}
Aggregations