@Test public void delete() throws Exception{ when(dcrService.delete(any())).thenReturn(Single.just(new Client())); when(clientSyncService.removeDynamicClientRegistred(any())).thenReturn(new Client()); testRequest( HttpMethod.DELETE, "/register/my-test-client_id", HttpStatusCode.NO_CONTENT_204, "No Content"); }
public void delete(RoutingContext context) { LOGGER.debug("Dynamic client registration DELETE endpoint"); this.getClient(context) .flatMapSingle(dcrService::delete) .map(this.clientSyncService::removeDynamicClientRegistred) .subscribe( client -> context.response().setStatusCode(HttpStatusCode.NO_CONTENT_204).end() , error -> context.fail(error) ); }
DynamicClientAccessEndpoint extends DynamicClientRegistrationEndpoint { public void delete(RoutingContext context) { LOGGER.debug("Dynamic client registration DELETE endpoint"); this.getClient(context) .flatMapSingle(dcrService::delete) .map(this.clientSyncService::removeDynamicClientRegistred) .subscribe( client -> context.response().setStatusCode(HttpStatusCode.NO_CONTENT_204).end() , error -> context.fail(error) ); } }
DynamicClientAccessEndpoint extends DynamicClientRegistrationEndpoint { public void delete(RoutingContext context) { LOGGER.debug("Dynamic client registration DELETE endpoint"); this.getClient(context) .flatMapSingle(dcrService::delete) .map(this.clientSyncService::removeDynamicClientRegistred) .subscribe( client -> context.response().setStatusCode(HttpStatusCode.NO_CONTENT_204).end() , error -> context.fail(error) ); } DynamicClientAccessEndpoint(DynamicClientRegistrationService dcrService, ClientSyncService clientSyncService); }
DynamicClientAccessEndpoint extends DynamicClientRegistrationEndpoint { public void delete(RoutingContext context) { LOGGER.debug("Dynamic client registration DELETE endpoint"); this.getClient(context) .flatMapSingle(dcrService::delete) .map(this.clientSyncService::removeDynamicClientRegistred) .subscribe( client -> context.response().setStatusCode(HttpStatusCode.NO_CONTENT_204).end() , error -> context.fail(error) ); } DynamicClientAccessEndpoint(DynamicClientRegistrationService dcrService, ClientSyncService clientSyncService); void read(RoutingContext context); void patch(RoutingContext context); void update(RoutingContext context); void delete(RoutingContext context); void renewClientSecret(RoutingContext context); }
DynamicClientAccessEndpoint extends DynamicClientRegistrationEndpoint { public void delete(RoutingContext context) { LOGGER.debug("Dynamic client registration DELETE endpoint"); this.getClient(context) .flatMapSingle(dcrService::delete) .map(this.clientSyncService::removeDynamicClientRegistred) .subscribe( client -> context.response().setStatusCode(HttpStatusCode.NO_CONTENT_204).end() , error -> context.fail(error) ); } DynamicClientAccessEndpoint(DynamicClientRegistrationService dcrService, ClientSyncService clientSyncService); void read(RoutingContext context); void patch(RoutingContext context); void update(RoutingContext context); void delete(RoutingContext context); void renewClientSecret(RoutingContext context);  }