use of org.eclipse.hono.client.registry.amqp.ProtonBasedTenantClient in project hono by eclipse.
the class TenantAmqpIT method createTenantClients.
/**
* Creates clients for invoking operations of the
* Tenant API.
*
* @param vertx The vert.x instance to run the clients on.
* @param ctx The vert.x test context.
*/
@BeforeAll
public static void createTenantClients(final Vertx vertx, final VertxTestContext ctx) {
final Checkpoint connections = ctx.checkpoint(2);
allTenantClient = new ProtonBasedTenantClient(HonoConnection.newConnection(vertx, IntegrationTestSupport.getDeviceRegistryProperties(IntegrationTestSupport.TENANT_ADMIN_USER, IntegrationTestSupport.TENANT_ADMIN_PWD)), SendMessageSampler.Factory.noop(), null);
allTenantClient.start().onComplete(ctx.succeeding(r -> {
connections.flag();
}));
defaultTenantClient = new ProtonBasedTenantClient(HonoConnection.newConnection(vertx, IntegrationTestSupport.getDeviceRegistryProperties(IntegrationTestSupport.HONO_USER, IntegrationTestSupport.HONO_PWD)), SendMessageSampler.Factory.noop(), null);
defaultTenantClient.start().onComplete(ctx.succeeding(r -> {
connections.flag();
}));
}
Aggregations