Search in sources :

Example 1 with StandaloneQueryRunner

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());
}
Also used : StandaloneQueryRunner(com.facebook.presto.tests.StandaloneQueryRunner) SchemaTableName(com.facebook.presto.spi.SchemaTableName) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 2 with StandaloneQueryRunner

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());
}
Also used : StandaloneQueryRunner(com.facebook.presto.tests.StandaloneQueryRunner) SchemaTableName(com.facebook.presto.spi.SchemaTableName) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 3 with StandaloneQueryRunner

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());
}
Also used : Properties(java.util.Properties) StandaloneQueryRunner(com.facebook.presto.tests.StandaloneQueryRunner) SchemaTableName(com.facebook.presto.spi.SchemaTableName) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

SchemaTableName (com.facebook.presto.spi.SchemaTableName)3 StandaloneQueryRunner (com.facebook.presto.tests.StandaloneQueryRunner)3 BeforeMethod (org.testng.annotations.BeforeMethod)3 Properties (java.util.Properties)1