use of com.google.cloud.talent.v4beta1.UpdateJobRequest in project java-talent by googleapis.
the class ITSystemTest method updateJobTest.
@Test
public void updateJobTest() {
String department = "Information technology";
Job updateJob = job.toBuilder().setDepartment(department).build();
UpdateJobRequest request = UpdateJobRequest.newBuilder().setJob(updateJob).build();
Job actual = jobServiceClient.updateJob(request);
assertEquals(job.getName(), actual.getName());
assertEquals(job.getCompany(), actual.getCompany());
assertEquals(job.getRequisitionId(), actual.getRequisitionId());
assertEquals(job.getTitle(), actual.getTitle());
assertEquals(job.getDescription(), actual.getDescription());
assertEquals(job.getApplicationInfo(), actual.getApplicationInfo());
assertEquals(job.getAddressesCount(), actual.getAddressesCount());
assertEquals(job.getLanguageCode(), actual.getLanguageCode());
assertEquals(department, actual.getDepartment());
}
Aggregations