Search in sources :

Example 6 with ListJobsRequest

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

Aggregations

Job (com.google.cloud.talent.v4beta1.Job)3 ListJobsRequest (com.google.cloud.talent.v4beta1.ListJobsRequest)3 Test (org.junit.Test)3 ListJobsPagedResponse (com.google.cloud.talent.v4.JobServiceClient.ListJobsPagedResponse)2 JobServiceClient (com.google.cloud.talent.v4beta1.JobServiceClient)2 AbstractMessage (com.google.protobuf.AbstractMessage)2 Job (com.google.cloud.talent.v4.Job)1 JobServiceClient (com.google.cloud.talent.v4.JobServiceClient)1 ListJobsRequest (com.google.cloud.talent.v4.ListJobsRequest)1 TenantName (com.google.cloud.talent.v4.TenantName)1 TenantName (com.google.cloud.talent.v4beta1.TenantName)1 TenantOrProjectName (com.google.cloud.talent.v4beta1.TenantOrProjectName)1