LOG.debug("moveFolderToAnotherUser: " + result);
}
@Test
public void testUpdateUserInformaiton() throws Exception {
final BoxUser enterpriseUser = createEnterpriseUser();
try {
final Map<String, Object> headers = new HashMap<String, Object>();
// parameter type is String
headers.put("CamelBox.userId", enterpriseUser.getId());
// parameter type is com.box.boxjavalibv2.requests.requestobjects.BoxUserRequestObject
final BoxUserRequestObject requestObject =
BoxUserRequestObject.updateUserInfoRequestObject(false);
requestObject.setJobTitle(CAMEL_JOB_TITLE);
headers.put("CamelBox.userRequest", requestObject);
BoxUser result = requestBodyAndHeaders("direct://UPDATEUSERINFORMAITON", null, headers);
assertNotNull("updateUserInformaiton result", result);
assertEquals("updateUserInformaiton job title", CAMEL_JOB_TITLE, result.getJobTitle());
LOG.debug("updateUserInformaiton: " + result);
} finally {
deleteEnterpriseUser(enterpriseUser.getId());
}
}