use of com.google.cloud.talent.v4.ListJobsRequest in project java-talent by googleapis.
the class ITSystemTest method listJobsTest.
@Test
public void listJobsTest() {
String filter = "companyName =" + "\"" + company.getName() + "\"";
ListJobsRequest request = ListJobsRequest.newBuilder().setParent(tenantName.toString()).setFilter(filter).build();
for (Job actual : jobServiceClient.listJobs(request).iterateAll()) {
if (job.getName().equals(actual.getName())) {
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());
}
}
}
Aggregations