/** * Verifies that the service removes tenants for a given tenantId. * * @param ctx The vert.x test context. */ @Test public void testRemoveTenantsSucceeds(final TestContext ctx) { addTenant("tenant").map(ok -> { getCompleteTenantService().remove("tenant", ctx.asyncAssertSuccess(s -> { assertThat(s.getStatus(), is(HttpURLConnection.HTTP_NO_CONTENT)); assertTenantDoesNotExist(getCompleteTenantService(), "tenant", ctx); })); return null; }); }