@Test void consents() { when(consentService.getListOfConsents(anyString())).thenReturn(getObaAisConsents()); ResponseEntity<List<ObaAisConsent>> response = controller.consents(LOGIN); assertEquals(ResponseEntity.ok(getObaAisConsents()), response); }
@Override @PreAuthorize("#userLogin == authentication.principal.login") public ResponseEntity<List<ObaAisConsent>> consents(String userLogin) { return ResponseEntity.ok(consentService.getListOfConsents(userLogin)); }
ObaConsentController implements ObaConsentApi { @Override @PreAuthorize("#userLogin == authentication.principal.login") public ResponseEntity<List<ObaAisConsent>> consents(String userLogin) { return ResponseEntity.ok(consentService.getListOfConsents(userLogin)); } }
ObaConsentController implements ObaConsentApi { @Override @PreAuthorize("#userLogin == authentication.principal.login") public ResponseEntity<List<ObaAisConsent>> consents(String userLogin) { return ResponseEntity.ok(consentService.getListOfConsents(userLogin)); }  }
ObaConsentController implements ObaConsentApi { @Override @PreAuthorize("#userLogin == authentication.principal.login") public ResponseEntity<List<ObaAisConsent>> consents(String userLogin) { return ResponseEntity.ok(consentService.getListOfConsents(userLogin)); }  @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 @PreAuthorize("#userLogin == authentication.principal.login") public ResponseEntity<List<ObaAisConsent>> consents(String userLogin) { return ResponseEntity.ok(consentService.getListOfConsents(userLogin)); }  @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();  }