use of org.eclipse.hono.client.CredentialsClient in project hono by eclipse.
the class CredentialsAmqpIT method prepareDeviceRegistry.
/**
* Starts the device registry and connects a client.
*
* @param ctx The vert.x test context.
*/
@BeforeClass
public static void prepareDeviceRegistry(final TestContext ctx) {
client = DeviceRegistryAmqpTestSupport.prepareDeviceRegistryClient(vertx);
client.connect(new ProtonClientOptions()).compose(c -> c.getOrCreateCredentialsClient(Constants.DEFAULT_TENANT)).setHandler(ctx.asyncAssertSuccess(r -> {
credentialsClient = r;
}));
}
Aggregations