use of org.eclipse.hono.tests.jms.JmsBasedTenantClient in project hono by eclipse.
the class TenantJmsIT method prepareDeviceRegistry.
/**
* Creates an HTTP client for managing the fixture of test cases
* and creates clients for invoking operations of the
* Tenant API.
*
* @param ctx The vert.x test context.
*/
@BeforeAll
public static void prepareDeviceRegistry(final VertxTestContext ctx) {
final Checkpoint connections = ctx.checkpoint(2);
final ClientConfigProperties allTenantConfig = IntegrationTestSupport.getDeviceRegistryProperties(IntegrationTestSupport.TENANT_ADMIN_USER, IntegrationTestSupport.TENANT_ADMIN_PWD);
allTenantClient = new JmsBasedTenantClient(JmsBasedHonoConnection.newConnection(allTenantConfig), allTenantConfig);
allTenantClient.start().onComplete(ctx.succeeding(client -> {
connections.flag();
}));
final ClientConfigProperties defaultTenantConfig = IntegrationTestSupport.getDeviceRegistryProperties(IntegrationTestSupport.HONO_USER, IntegrationTestSupport.HONO_PWD);
defaultTenantClient = new JmsBasedTenantClient(JmsBasedHonoConnection.newConnection(defaultTenantConfig), defaultTenantConfig);
defaultTenantClient.start().onComplete(ctx.succeeding(client -> {
connections.flag();
}));
}
Aggregations