use of org.folio.rest.jaxrs.model.TenantAttributes in project raml-module-builder by folio-org.
the class TenantAPIIT method tenantPost.
public void tenantPost(TestContext context) {
Async async = context.async();
vertx.runOnContext(run -> {
TenantAPI tenantAPI = new TenantAPI();
try {
TenantAttributes tenantAttributes = new TenantAttributes();
Map<String, String> map = new HashMap<>();
map.put("TenantId", tenantId);
tenantAPI.postTenant(tenantAttributes, map, h -> {
tenantAPI.tenantExists(Vertx.currentContext(), tenantId, onSuccess(context, bool -> {
context.assertTrue(bool, "tenant exists");
async.complete();
}));
}, Vertx.currentContext());
} catch (Exception e) {
context.fail(e);
}
});
async.awaitSuccess();
}
Aggregations