@Test void users() { when(adminRestClient.users(any(), any(), any(), any(), any(), any(), anyInt(), anyInt())).thenReturn(ResponseEntity.ok().build()); ResponseEntity<CustomPageImpl<UserExtendedTO>> result = controller.users("", "", "", "", UserRoleTO.CUSTOMER, false, 0, 1); assertEquals(HttpStatus.OK, result.getStatusCode()); }
@Override public ResponseEntity<CustomPageImpl<UserExtendedTO>> users(String countryCode, String tppId, String tppLogin, String userLogin, UserRoleTO role, Boolean blocked, int page, int size) { return adminRestClient.users(countryCode, tppId, tppLogin, userLogin, role, blocked, page, size); }
TppAdminController implements TppAdminRestApi { @Override public ResponseEntity<CustomPageImpl<UserExtendedTO>> users(String countryCode, String tppId, String tppLogin, String userLogin, UserRoleTO role, Boolean blocked, int page, int size) { return adminRestClient.users(countryCode, tppId, tppLogin, userLogin, role, blocked, page, size); } }
TppAdminController implements TppAdminRestApi { @Override public ResponseEntity<CustomPageImpl<UserExtendedTO>> users(String countryCode, String tppId, String tppLogin, String userLogin, UserRoleTO role, Boolean blocked, int page, int size) { return adminRestClient.users(countryCode, tppId, tppLogin, userLogin, role, blocked, page, size); }  }
TppAdminController implements TppAdminRestApi { @Override public ResponseEntity<CustomPageImpl<UserExtendedTO>> users(String countryCode, String tppId, String tppLogin, String userLogin, UserRoleTO role, Boolean blocked, int page, int size) { return adminRestClient.users(countryCode, tppId, tppLogin, userLogin, role, blocked, page, size); }  @Override ResponseEntity<CustomPageImpl<UserExtendedTO>> users(String countryCode, String tppId, String tppLogin, String userLogin, UserRoleTO role, Boolean blocked, int page, int size); @Override ResponseEntity<Void> user(UserTO user); @Override ResponseEntity<CustomPageImpl<AccountDetailsExtendedTO>> accounts(String countryCode, String tppId, String tppLogin, String ibanParam, Boolean isBlocked, int page, int size); @Override ResponseEntity<Void> register(User user, String tppId); @Override ResponseEntity<Void> admin(User user); @Override ResponseEntity<CustomPageImpl<UserTO>> admins(int page, int size); @Override ResponseEntity<Void> remove(String tppId); @Override ResponseEntity<Void> updatePassword(String tppId, String password); @Override ResponseEntity<Boolean> changeStatus(String userId); }
TppAdminController implements TppAdminRestApi { @Override public ResponseEntity<CustomPageImpl<UserExtendedTO>> users(String countryCode, String tppId, String tppLogin, String userLogin, UserRoleTO role, Boolean blocked, int page, int size) { return adminRestClient.users(countryCode, tppId, tppLogin, userLogin, role, blocked, page, size); }  @Override ResponseEntity<CustomPageImpl<UserExtendedTO>> users(String countryCode, String tppId, String tppLogin, String userLogin, UserRoleTO role, Boolean blocked, int page, int size); @Override ResponseEntity<Void> user(UserTO user); @Override ResponseEntity<CustomPageImpl<AccountDetailsExtendedTO>> accounts(String countryCode, String tppId, String tppLogin, String ibanParam, Boolean isBlocked, int page, int size); @Override ResponseEntity<Void> register(User user, String tppId); @Override ResponseEntity<Void> admin(User user); @Override ResponseEntity<CustomPageImpl<UserTO>> admins(int page, int size); @Override ResponseEntity<Void> remove(String tppId); @Override ResponseEntity<Void> updatePassword(String tppId, String password); @Override ResponseEntity<Boolean> changeStatus(String userId);  }