/** * Verifies that the service removes credentials for a given auth-id and type. * * @param ctx The vert.x test context. */ @Test public void testRemoveCredentialsByAuthIdAndTypeSucceeds(final TestContext ctx) { register(getCompleteCredentialsService(), "tenant", "device", "myId", "myType", ctx); final Async remove = ctx.async(); getCompleteCredentialsService().remove("tenant", "myType", "myId", ctx.asyncAssertSuccess(s -> { assertThat(s.getStatus(), is(HttpURLConnection.HTTP_NO_CONTENT)); assertNotRegistered(getCompleteCredentialsService(), "tenant", "myId", "myType", ctx); remove.complete(); })); remove.await(); }