use of com.facebook.presto.spi.connector.ConnectorFactory in project presto by prestodb.
the class TestOraclePlugin method testCreateConnector.
@Test
public void testCreateConnector() {
Plugin plugin = new OraclePlugin();
ConnectorFactory factory = getOnlyElement(plugin.getConnectorFactories());
factory.create("test", ImmutableMap.of("connection-url", "jdbc:oracle:thin//test"), new TestingConnectorContext());
}
use of com.facebook.presto.spi.connector.ConnectorFactory in project presto by prestodb.
the class TestSqlServerPlugin method testCreateConnector.
@Test
public void testCreateConnector() {
Plugin plugin = new SqlServerPlugin();
ConnectorFactory factory = getOnlyElement(plugin.getConnectorFactories());
factory.create("test", ImmutableMap.of("connection-url", "test"), new TestingConnectorContext());
}
use of com.facebook.presto.spi.connector.ConnectorFactory in project presto by prestodb.
the class TestMySqlPlugin method testCreateConnector.
@Test
public void testCreateConnector() {
Plugin plugin = new MySqlPlugin();
ConnectorFactory factory = getOnlyElement(plugin.getConnectorFactories());
factory.create("test", ImmutableMap.of("connection-url", "jdbc:mysql://test"), new TestingConnectorContext());
}
use of com.facebook.presto.spi.connector.ConnectorFactory in project presto by prestodb.
the class TestRedshiftPlugin method testCreateConnector.
@Test
public void testCreateConnector() {
Plugin plugin = new RedshiftPlugin();
ConnectorFactory factory = getOnlyElement(plugin.getConnectorFactories());
factory.create("test", ImmutableMap.of("connection-url", "test"), new TestingConnectorContext());
}
use of com.facebook.presto.spi.connector.ConnectorFactory in project presto by prestodb.
the class TestRedisPlugin method testStartup.
@Test
public void testStartup() {
RedisPlugin plugin = new RedisPlugin();
ConnectorFactory factory = getOnlyElement(plugin.getConnectorFactories());
assertInstanceOf(factory, RedisConnectorFactory.class);
Connector c = factory.create("test-connector", ImmutableMap.<String, String>builder().put("redis.table-names", "test").put("redis.nodes", "localhost:6379").build(), new TestingConnectorContext());
assertNotNull(c);
}
Aggregations