Search in sources :

Example 1 with NotificationKafkaConsumerConfigProperties

use of org.eclipse.hono.client.notification.kafka.NotificationKafkaConsumerConfigProperties in project hono by eclipse.

the class DeviceRegistryNotificationsIT method testReceiveNotificationViaKafka.

/**
 * Verifies that Kafka-based notifications for adding tenant/device/credentials resources are received by a local
 * client.
 *
 * @param ctx The vert.x test context.
 * @throws InterruptedException if test is interrupted while running.
 */
@Test
@AssumeMessagingSystem(type = MessagingType.kafka)
public void testReceiveNotificationViaKafka(final VertxTestContext ctx) throws InterruptedException {
    final var notificationConsumerConfig = new NotificationKafkaConsumerConfigProperties();
    notificationConsumerConfig.setConsumerConfig(IntegrationTestSupport.getKafkaConsumerConfig().getConsumerConfig("notification-receiver"));
    receiver = new KafkaBasedNotificationReceiver(vertx, notificationConsumerConfig);
    testReceiveNotification(ctx);
}
Also used : NotificationKafkaConsumerConfigProperties(org.eclipse.hono.client.notification.kafka.NotificationKafkaConsumerConfigProperties) KafkaBasedNotificationReceiver(org.eclipse.hono.client.notification.kafka.KafkaBasedNotificationReceiver) Test(org.junit.jupiter.api.Test) AssumeMessagingSystem(org.eclipse.hono.tests.AssumeMessagingSystem)

Aggregations

KafkaBasedNotificationReceiver (org.eclipse.hono.client.notification.kafka.KafkaBasedNotificationReceiver)1 NotificationKafkaConsumerConfigProperties (org.eclipse.hono.client.notification.kafka.NotificationKafkaConsumerConfigProperties)1 AssumeMessagingSystem (org.eclipse.hono.tests.AssumeMessagingSystem)1 Test (org.junit.jupiter.api.Test)1