use of com.facebook.presto.tests.StandaloneQueryRunner in project presto by prestodb.
the class TestManySegments method spinUp.
@BeforeMethod
public void spinUp() throws Exception {
this.queryRunner = new StandaloneQueryRunner(SESSION);
TestUtils.installKafkaPlugin(embeddedKafka, queryRunner, ImmutableMap.<SchemaTableName, KafkaTopicDescription>builder().put(createEmptyTopicDescription(topicName, new SchemaTableName("default", topicName))).build());
}
use of com.facebook.presto.tests.StandaloneQueryRunner in project presto by prestodb.
the class TestMinimalFunctionality method spinUp.
@BeforeMethod
public void spinUp() throws Exception {
this.tableName = "test_" + UUID.randomUUID().toString().replaceAll("-", "_");
this.queryRunner = new StandaloneQueryRunner(SESSION);
installRedisPlugin(embeddedRedis, queryRunner, ImmutableMap.<SchemaTableName, RedisTableDescription>builder().put(createEmptyTableDescription(new SchemaTableName("default", tableName))).build());
}
use of com.facebook.presto.tests.StandaloneQueryRunner in project presto by prestodb.
the class TestMinimalFunctionality method spinUp.
@BeforeMethod
public void spinUp() throws Exception {
this.topicName = "test_" + UUID.randomUUID().toString().replaceAll("-", "_");
Properties topicProperties = new Properties();
embeddedKafka.createTopics(2, 1, topicProperties, topicName);
this.queryRunner = new StandaloneQueryRunner(SESSION);
TestUtils.installKafkaPlugin(embeddedKafka, queryRunner, ImmutableMap.<SchemaTableName, KafkaTopicDescription>builder().put(createEmptyTopicDescription(topicName, new SchemaTableName("default", topicName))).build());
}
Aggregations