Search in sources :

Example 1 with ProtonBasedCredentialsClient

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

the class CredentialsAmqpIT method createCredentialsClientFactory.

/**
 * Creates an AMQP 1.0 based client for the Credentials API.
 *
 * @param ctx The vert.x test context.
 */
@BeforeAll
public static void createCredentialsClientFactory(final VertxTestContext ctx) {
    client = new ProtonBasedCredentialsClient(HonoConnection.newConnection(VERTX, IntegrationTestSupport.getDeviceRegistryProperties(IntegrationTestSupport.TENANT_ADMIN_USER, IntegrationTestSupport.TENANT_ADMIN_PWD)), SendMessageSampler.Factory.noop(), null);
    client.start().onComplete(ctx.succeedingThenComplete());
}
Also used : ProtonBasedCredentialsClient(org.eclipse.hono.client.registry.amqp.ProtonBasedCredentialsClient) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

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