@Test void getUser() { when(userMgmtRestClient.getUserById(any())).thenReturn(ResponseEntity.ok(getUserTO(BRANCH))); ResponseEntity<UserTO> user = tppUsersController.getUser(USER_ID); assertTrue(user.getStatusCode().is2xxSuccessful()); assertEquals(USER_ID, user.getBody().getId()); }
@Override public ResponseEntity<UserTO> getUser(String userId) { return userMgmtRestClient.getUserById(userId); }
TppUsersController implements TppUsersRestApi { @Override public ResponseEntity<UserTO> getUser(String userId) { return userMgmtRestClient.getUserById(userId); } }
TppUsersController implements TppUsersRestApi { @Override public ResponseEntity<UserTO> getUser(String userId) { return userMgmtRestClient.getUserById(userId); }  }
TppUsersController implements TppUsersRestApi { @Override public ResponseEntity<UserTO> getUser(String userId) { return userMgmtRestClient.getUserById(userId); }  @Override ResponseEntity<UserTO> createUser(User user); @Override ResponseEntity<CustomPageImpl<UserTO>> getAllUsers(String queryParam, int page, int size); @Override ResponseEntity<Void> updateUser(User user); @Override ResponseEntity<UserTO> getUser(String userId); @Override ResponseEntity<UserTO> getSelf(); @Override ResponseEntity<Boolean> changeStatus(String userId); }
TppUsersController implements TppUsersRestApi { @Override public ResponseEntity<UserTO> getUser(String userId) { return userMgmtRestClient.getUserById(userId); }  @Override ResponseEntity<UserTO> createUser(User user); @Override ResponseEntity<CustomPageImpl<UserTO>> getAllUsers(String queryParam, int page, int size); @Override ResponseEntity<Void> updateUser(User user); @Override ResponseEntity<UserTO> getUser(String userId); @Override ResponseEntity<UserTO> getSelf(); @Override ResponseEntity<Boolean> changeStatus(String userId);  }