Search in sources :

Example 1 with UpdateJobRequest

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());
}
Also used : UpdateJobRequest(com.google.cloud.talent.v4beta1.UpdateJobRequest) Job(com.google.cloud.talent.v4beta1.Job) Test(org.junit.Test)

Aggregations

Job (com.google.cloud.talent.v4beta1.Job)1 UpdateJobRequest (com.google.cloud.talent.v4beta1.UpdateJobRequest)1 Test (org.junit.Test)1