@Test void createPiis() throws NoSuchFieldException { FieldSetter.setField(controller, controller.getClass().getDeclaredField("auth"), new ObaMiddlewareAuthentication(null, new BearerTokenTO(TOKEN, null, 999, null, getAccessTokenTO()))); ResponseEntity<Void> response = controller.createPiis(new CreatePiisConsentRequestTO()); assertEquals(ResponseEntity.ok().build(), response); }
@Override public ResponseEntity<Void> createPiis(CreatePiisConsentRequestTO request) { consentService.createPiisConsent(request, AuthUtils.psuId(auth)); return ResponseEntity.ok().build(); }
ObaConsentController implements ObaConsentApi { @Override public ResponseEntity<Void> createPiis(CreatePiisConsentRequestTO request) { consentService.createPiisConsent(request, AuthUtils.psuId(auth)); return ResponseEntity.ok().build(); } }
ObaConsentController implements ObaConsentApi { @Override public ResponseEntity<Void> createPiis(CreatePiisConsentRequestTO request) { consentService.createPiisConsent(request, AuthUtils.psuId(auth)); return ResponseEntity.ok().build(); }  }
ObaConsentController implements ObaConsentApi { @Override public ResponseEntity<Void> createPiis(CreatePiisConsentRequestTO request) { consentService.createPiisConsent(request, AuthUtils.psuId(auth)); return ResponseEntity.ok().build(); }  @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<Void> createPiis(CreatePiisConsentRequestTO request) { consentService.createPiisConsent(request, AuthUtils.psuId(auth)); return ResponseEntity.ok().build(); }  @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();  }