test_class.declarator: PROFILE_PHOTO_FILE_CONTENTS = "profile-photo-file-contents".getBytes()
test_class.modifier: private static final
test_class.original_string: private static final byte[] PROFILE_PHOTO_FILE_CONTENTS = "profile-photo-file-contents".getBytes();
test_class.type: byte[]
test_class.var_name: PROFILE_PHOTO_FILE_CONTENTS
test_class.declarator: PROFILE_PHOTO_THUMBNAIL_FILE_CONTENTS = "profile-photo-thumbnail-file-contents".getBytes()
test_class.modifier: private static final
test_class.original_string: private static final byte[] PROFILE_PHOTO_THUMBNAIL_FILE_CONTENTS = "profile-photo-thumbnail-file-contents".getBytes();
test_class.type: byte[]
test_class.var_name: PROFILE_PHOTO_THUMBNAIL_FILE_CONTENTS
test_class.declarator: ROLE_ORGANIZATION_USER = "ORG_USER"
test_class.modifier: private static final
test_class.original_string: private static final String ROLE_ORGANIZATION_USER = "ORG_USER";
test_class.type: String
test_class.var_name: ROLE_ORGANIZATION_USER
test_class.declarator: mockMvc
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private MockMvc mockMvc;
test_class.type: MockMvc
test_class.var_name: mockMvc
test_class.declarator: objectMapper
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private ObjectMapper objectMapper;
test_class.type: ObjectMapper
test_class.var_name: objectMapper
test_class.declarator: usersService
test_class.modifier: @MockBean
      private
test_class.original_string: @MockBean
      private UsersService usersService;
test_class.type: UsersService
test_class.var_name: usersService
test_class.declarator: fileService
test_class.modifier: @MockBean
      private
test_class.original_string: @MockBean
      private FileService fileService;
test_class.type: FileService
test_class.var_name: fileService
test_class.declarator: usersReadService
test_class.modifier: @MockBean
      private
test_class.original_string: @MockBean
      private UsersReadService usersReadService;
test_class.type: UsersReadService
test_class.var_name: usersReadService
test_class.file: api/src/test/java/engineering/everest/lhotse/api/rest/controllers/UserControllerTest.java
test_class.identifier: UserControllerTest
test_case.body: @Test
      @WithMockUser(username = "user@umbrella.com", roles = ROLE_ORGANIZATION_USER)
      void willUpdateUserInfo() throws Exception {
          User authUser = MockAuthenticationContextProvider.getAuthUser();
          mockMvc.perform(put("/api/user")
                  .contentType(APPLICATION_JSON)
                  .content(objectMapper.writeValueAsString(new UpdateUserRequest("display-name-change", "email-change", "password-change"))))
                  .andExpect(status().isOk());
  
          verify(usersService).updateUser(authUser.getId(), authUser.getId(), "email-change",
                  "display-name-change", "password-change");
      }
test_case.class_method_signature: UserControllerTest.willUpdateUserInfo()
test_case.full_signature: @Test @WithMockUser(username = "user@umbrella.com", roles = ROLE_ORGANIZATION_USER) void willUpdateUserInfo()
test_case.identifier: willUpdateUserInfo
test_case.invocations: getAuthUser andExpect perform content contentType put writeValueAsString isOk status updateUser verify getId getId
test_case.modifiers: @Test @WithMockUser(username = "user@umbrella.com", roles = ROLE_ORGANIZATION_USER)
test_case.parameters: ()
test_case.return: void
test_case.signature: void willUpdateUserInfo()
focal_class.declarator: dtoConverter
focal_class.modifier: private final
focal_class.original_string: private final DtoConverter dtoConverter;
focal_class.type: DtoConverter
focal_class.var_name: dtoConverter
focal_class.declarator: usersService
focal_class.modifier: private final
focal_class.original_string: private final UsersService usersService;
focal_class.type: UsersService
focal_class.var_name: usersService
focal_class.declarator: fileService
focal_class.modifier: private final
focal_class.original_string: private final FileService fileService;
focal_class.type: FileService
focal_class.var_name: fileService
focal_class.declarator: usersReadService
focal_class.modifier: private final
focal_class.original_string: private final UsersReadService usersReadService;
focal_class.type: UsersReadService
focal_class.var_name: usersReadService
focal_class.file: api/src/main/java/engineering/everest/lhotse/api/rest/controllers/UserController.java
focal_class.identifier: UserController
focal_class.class_method_signature: UserController.UserController(DtoConverter dtoConverter, UsersService usersService, FileService fileService,
                            UsersReadService usersReadService)
focal_class.full_signature: @Autowired public  UserController(DtoConverter dtoConverter, UsersService usersService, FileService fileService,
                            UsersReadService usersReadService)
focal_class.identifier: UserController
focal_class.modifiers: @Autowired public
focal_class.parameters: (DtoConverter dtoConverter, UsersService usersService, FileService fileService,
                            UsersReadService usersReadService)
focal_class.signature:  UserController(DtoConverter dtoConverter, UsersService usersService, FileService fileService,
                            UsersReadService usersReadService)
focal_class.class_method_signature: UserController.getUser(User user)
focal_class.full_signature: @GetMapping @ApiOperation(produces = APPLICATION_JSON_VALUE, value = "Get currently authenticated user information") public UserResponse getUser(User user)
focal_class.identifier: getUser
focal_class.modifiers: @GetMapping @ApiOperation(produces = APPLICATION_JSON_VALUE, value = "Get currently authenticated user information") public
focal_class.parameters: (User user)
focal_class.return: UserResponse
focal_class.signature: UserResponse getUser(User user)
focal_class.class_method_signature: UserController.updateUser(User user, @RequestBody UpdateUserRequest updateUserRequest)
focal_class.full_signature: @PutMapping @ApiOperation("Update currently authenticated user information") public void updateUser(User user, @RequestBody UpdateUserRequest updateUserRequest)
focal_class.identifier: updateUser
focal_class.modifiers: @PutMapping @ApiOperation("Update currently authenticated user information") public
focal_class.parameters: (User user, @RequestBody UpdateUserRequest updateUserRequest)
focal_class.return: void
focal_class.signature: void updateUser(User user, @RequestBody UpdateUserRequest updateUserRequest)
focal_class.class_method_signature: UserController.uploadProfilePhoto(User requestingUser,
                                     @RequestParam("file") MultipartFile uploadedFile)
focal_class.full_signature: @PostMapping("/profile-photo") public void uploadProfilePhoto(User requestingUser,
                                     @RequestParam("file") MultipartFile uploadedFile)
focal_class.identifier: uploadProfilePhoto
focal_class.modifiers: @PostMapping("/profile-photo") public
focal_class.parameters: (User requestingUser,
                                     @RequestParam("file") MultipartFile uploadedFile)
focal_class.return: void
focal_class.signature: void uploadProfilePhoto(User requestingUser,
                                     @RequestParam("file") MultipartFile uploadedFile)
focal_class.class_method_signature: UserController.streamProfilePhoto(User requestingUser)
focal_class.full_signature: @GetMapping("/profile-photo") public ResponseEntity<StreamingResponseBody> streamProfilePhoto(User requestingUser)
focal_class.identifier: streamProfilePhoto
focal_class.modifiers: @GetMapping("/profile-photo") public
focal_class.parameters: (User requestingUser)
focal_class.return: ResponseEntity<StreamingResponseBody>
focal_class.signature: ResponseEntity<StreamingResponseBody> streamProfilePhoto(User requestingUser)
focal_class.class_method_signature: UserController.streamProfilePhotoThumbnail(User requestingUser,
                                                                               @RequestParam int width,
                                                                               @RequestParam int height)
focal_class.full_signature: @GetMapping( value = "/profile-photo/thumbnail", produces = APPLICATION_OCTET_STREAM_VALUE) public ResponseEntity<StreamingResponseBody> streamProfilePhotoThumbnail(User requestingUser,
                                                                               @RequestParam int width,
                                                                               @RequestParam int height)
focal_class.identifier: streamProfilePhotoThumbnail
focal_class.modifiers: @GetMapping( value = "/profile-photo/thumbnail", produces = APPLICATION_OCTET_STREAM_VALUE) public
focal_class.parameters: (User requestingUser,
                                                                               @RequestParam int width,
                                                                               @RequestParam int height)
focal_class.return: ResponseEntity<StreamingResponseBody>
focal_class.signature: ResponseEntity<StreamingResponseBody> streamProfilePhotoThumbnail(User requestingUser,
                                                                               @RequestParam int width,
                                                                               @RequestParam int height)
focal_method.body: @PutMapping
      @ApiOperation("Update currently authenticated user information")
      public void updateUser(User user, @RequestBody UpdateUserRequest updateUserRequest) {
          usersService.updateUser(user.getId(), user.getId(),
                  updateUserRequest.getEmail(), updateUserRequest.getDisplayName(), updateUserRequest.getPassword());
      }
focal_method.class_method_signature: UserController.updateUser(User user, @RequestBody UpdateUserRequest updateUserRequest)
focal_method.full_signature: @PutMapping @ApiOperation("Update currently authenticated user information") public void updateUser(User user, @RequestBody UpdateUserRequest updateUserRequest)
focal_method.identifier: updateUser
focal_method.invocations: updateUser getId getId getEmail getDisplayName getPassword
focal_method.modifiers: @PutMapping @ApiOperation("Update currently authenticated user information") public
focal_method.parameters: (User user, @RequestBody UpdateUserRequest updateUserRequest)
focal_method.return: void
focal_method.signature: void updateUser(User user, @RequestBody UpdateUserRequest updateUserRequest)