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());
}
Aggregations