@Test void revokeConsent() { when(consentService.revokeConsent(anyString())).thenReturn(true); ResponseEntity<Boolean> response = controller.revokeConsent(CONSENT_ID); assertEquals(ResponseEntity.ok(true), response); }
@Override public ResponseEntity<Boolean> revokeConsent(String consentId) { return ResponseEntity.ok(consentService.revokeConsent(consentId)); }
ObaConsentController implements ObaConsentApi { @Override public ResponseEntity<Boolean> revokeConsent(String consentId) { return ResponseEntity.ok(consentService.revokeConsent(consentId)); } }
ObaConsentController implements ObaConsentApi { @Override public ResponseEntity<Boolean> revokeConsent(String consentId) { return ResponseEntity.ok(consentService.revokeConsent(consentId)); }  }
ObaConsentController implements ObaConsentApi { @Override public ResponseEntity<Boolean> revokeConsent(String consentId) { return ResponseEntity.ok(consentService.revokeConsent(consentId)); }  @Override @PreAuthorize("#userLogin == authentication.principal.login") ResponseEntity<List<ObaAisConsent>> consents(String userLogin); @Override ResponseEntity<Boolean> revokeConsent(String consentId); @Override ResponseEntity<Void> confirm(String userLogin, String consentId, String authorizationId, String tan); @Override ResponseEntity<Void> createPiis(CreatePiisConsentRequestTO request); @Override ResponseEntity<List<TppInfoTO>> tpps(); }
ObaConsentController implements ObaConsentApi { @Override public ResponseEntity<Boolean> revokeConsent(String consentId) { return ResponseEntity.ok(consentService.revokeConsent(consentId)); }  @Override @PreAuthorize("#userLogin == authentication.principal.login") ResponseEntity<List<ObaAisConsent>> consents(String userLogin); @Override ResponseEntity<Boolean> revokeConsent(String consentId); @Override ResponseEntity<Void> confirm(String userLogin, String consentId, String authorizationId, String tan); @Override ResponseEntity<Void> createPiis(CreatePiisConsentRequestTO request); @Override ResponseEntity<List<TppInfoTO>> tpps();  }