// Path: src/test/java/com/hubrick/vertx/kafka/AbstractVertxTest.java
// @RunWith(VertxUnitRunner.class)
// public abstract class AbstractVertxTest {
//     protected Vertx vertx;
// 
//     @Before
//     public final void init(TestContext testContext) throws Exception {
//         vertx = Vertx.vertx();
//     }
// 
//     @After
//     public final void destroy() throws Exception {
//         vertx.close();
//     }
// 
//     protected abstract String getServiceName();
// 
//     protected void deploy(TestContext testContext, DeploymentOptions deploymentOptions) throws InterruptedException {
//         CountDownLatch latch = new CountDownLatch(1);
//         vertx.deployVerticle(getServiceName(), deploymentOptions, result -> {
//             if (result.failed()) {
//                 result.cause().printStackTrace();
//                 testContext.fail();
//             }
//             latch.countDown();
//         });
// 
//         latch.await(30, TimeUnit.SECONDS);
//     }
// }
// 
// Path: src/main/java/com/hubrick/vertx/kafka/consumer/property/KafkaConsumerProperties.java
// public final class KafkaConsumerProperties {
// 
// 
//     private KafkaConsumerProperties() {}
// 
// 
//     public static final String KEY_VERTX_ADDRESS = "address";
// 
//     public static final String KEY_CLIENT_ID = "clientId";
//     public static final String KEY_GROUP_ID = "groupId";
//     public static final String KEY_KAFKA_TOPIC = "kafkaTopic";
//     public static final String KEY_BOOTSTRAP_SERVERS = "bootstrapServers";
//     public static final String KEY_OFFSET_RESET = "offsetReset";
//     public static final String KEY_MAX_UNACKNOWLEDGED = "maxUnacknowledged";
//     public static final String KEY_MAX_UNCOMMITTED_OFFSETS = "maxUncommitted";
//     public static final String KEY_ACK_TIMEOUT_SECONDS = "ackTimeoutSeconds";
//     public static final String KEY_COMMIT_TIMEOUT_MS = "commitTimeoutMs";
//     public static final String KEY_MAX_RETRIES = "maxRetries";
//     public static final String KEY_INITIAL_RETRY_DELAY_SECONDS = "initialRetryDelaySeconds";
//     public static final String KEY_MAX_RETRY_DELAY_SECONDS = "maxRetryDelaySeconds";
//     public static final String KEY_EVENT_BUS_SEND_TIMEOUT = "eventBusSendTimeout";
//     public static final String KEY_MESSAGES_PER_SECOND = "messagesPerSecond";
//     public static final String KEY_COMMIT_ON_PARTITION_CHANGE = "commitOnPartitionChange";
//     public static final String KEY_STRICT_ORDERING = "strictOrdering";
//     public static final String KEY_MAX_POLL_RECORDS = "maxPollRecords";
//     public static final String KEY_MAX_POLL_INTERVAL_MS = "maxPollIntervalMs";
//     public static final String KEY_METRIC_CONSUMER_CLASSES = "metricConsumerClasses";
//     public static final String KEY_METRIC_DROPWIZARD_REGISTRY_NAME = "metricDropwizardRegistryName";
// 
// }


import com.hubrick.vertx.kafka.AbstractVertxTest;
import com.hubrick.vertx.kafka.consumer.property.KafkaConsumerProperties;
import io.vertx.core.json.JsonObject;
/**
 * Copyright (C) 2016 Etaia AS (oss@hubrick.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hubrick.vertx.kafka.consumer;


public abstract class AbstractConsumerTest extends AbstractVertxTest {

    protected static String SERVICE_NAME = "service:com.hubrick.services.kafka-consumer";

    static JsonObject makeDefaultConfig() {
        JsonObject config = new JsonObject();
// Path: src/test/java/com/hubrick/vertx/kafka/AbstractVertxTest.java
// @RunWith(VertxUnitRunner.class)
// public abstract class AbstractVertxTest {
//     protected Vertx vertx;
// 
//     @Before
//     public final void init(TestContext testContext) throws Exception {
//         vertx = Vertx.vertx();
//     }
// 
//     @After
//     public final void destroy() throws Exception {
//         vertx.close();
//     }
// 
//     protected abstract String getServiceName();
// 
//     protected void deploy(TestContext testContext, DeploymentOptions deploymentOptions) throws InterruptedException {
//         CountDownLatch latch = new CountDownLatch(1);
//         vertx.deployVerticle(getServiceName(), deploymentOptions, result -> {
//             if (result.failed()) {
//                 result.cause().printStackTrace();
//                 testContext.fail();
//             }
//             latch.countDown();
//         });
// 
//         latch.await(30, TimeUnit.SECONDS);
//     }
// }
// 
// Path: src/main/java/com/hubrick/vertx/kafka/consumer/property/KafkaConsumerProperties.java
// public final class KafkaConsumerProperties {
// 
// 
//     private KafkaConsumerProperties() {}
// 
// 
//     public static final String KEY_VERTX_ADDRESS = "address";
// 
//     public static final String KEY_CLIENT_ID = "clientId";
//     public static final String KEY_GROUP_ID = "groupId";
//     public static final String KEY_KAFKA_TOPIC = "kafkaTopic";
//     public static final String KEY_BOOTSTRAP_SERVERS = "bootstrapServers";
//     public static final String KEY_OFFSET_RESET = "offsetReset";
//     public static final String KEY_MAX_UNACKNOWLEDGED = "maxUnacknowledged";
//     public static final String KEY_MAX_UNCOMMITTED_OFFSETS = "maxUncommitted";
//     public static final String KEY_ACK_TIMEOUT_SECONDS = "ackTimeoutSeconds";
//     public static final String KEY_COMMIT_TIMEOUT_MS = "commitTimeoutMs";
//     public static final String KEY_MAX_RETRIES = "maxRetries";
//     public static final String KEY_INITIAL_RETRY_DELAY_SECONDS = "initialRetryDelaySeconds";
//     public static final String KEY_MAX_RETRY_DELAY_SECONDS = "maxRetryDelaySeconds";
//     public static final String KEY_EVENT_BUS_SEND_TIMEOUT = "eventBusSendTimeout";
//     public static final String KEY_MESSAGES_PER_SECOND = "messagesPerSecond";
//     public static final String KEY_COMMIT_ON_PARTITION_CHANGE = "commitOnPartitionChange";
//     public static final String KEY_STRICT_ORDERING = "strictOrdering";
//     public static final String KEY_MAX_POLL_RECORDS = "maxPollRecords";
//     public static final String KEY_MAX_POLL_INTERVAL_MS = "maxPollIntervalMs";
//     public static final String KEY_METRIC_CONSUMER_CLASSES = "metricConsumerClasses";
//     public static final String KEY_METRIC_DROPWIZARD_REGISTRY_NAME = "metricDropwizardRegistryName";
// 
// }


// Path: src/test/java/com/hubrick/vertx/kafka/consumer/AbstractConsumerTest.java
import com.hubrick.vertx.kafka.AbstractVertxTest;
import com.hubrick.vertx.kafka.consumer.property.KafkaConsumerProperties;
import io.vertx.core.json.JsonObject;

/**
 * Copyright (C) 2016 Etaia AS (oss@hubrick.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hubrick.vertx.kafka.consumer;


public abstract class AbstractConsumerTest extends AbstractVertxTest {

    protected static String SERVICE_NAME = "service:com.hubrick.services.kafka-consumer";

    static JsonObject makeDefaultConfig() {
        JsonObject config = new JsonObject();
        config.put(KafkaConsumerProperties.KEY_VERTX_ADDRESS, "kafkaConsumer");