Search in sources :

Example 1 with ProtonBasedDeviceRegistrationClient

use of org.eclipse.hono.client.registry.amqp.ProtonBasedDeviceRegistrationClient in project hono by eclipse.

the class DeviceRegistrationAmqpIT method createRegistrationClient.

/**
 * Creates a new client for accessing the Device Registration API.
 *
 * @param vertx The vert.x instance.
 * @param ctx The vert.x test context.
 */
@BeforeAll
public static void createRegistrationClient(final Vertx vertx, final VertxTestContext ctx) {
    registrationClient = new ProtonBasedDeviceRegistrationClient(HonoConnection.newConnection(vertx, IntegrationTestSupport.getDeviceRegistryProperties(IntegrationTestSupport.TENANT_ADMIN_USER, IntegrationTestSupport.TENANT_ADMIN_PWD)), SendMessageSampler.Factory.noop(), null);
    registrationClient.start().onComplete(ctx.succeedingThenComplete());
}
Also used : ProtonBasedDeviceRegistrationClient(org.eclipse.hono.client.registry.amqp.ProtonBasedDeviceRegistrationClient) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

ProtonBasedDeviceRegistrationClient (org.eclipse.hono.client.registry.amqp.ProtonBasedDeviceRegistrationClient)1 BeforeAll (org.junit.jupiter.api.BeforeAll)1