Search in sources :

Example 6 with ListCompaniesRequest

use of com.google.cloud.talent.v4.ListCompaniesRequest in project java-talent by googleapis.

the class ITSystemTest method listCompaniesTest.

@Test
public void listCompaniesTest() {
    ListCompaniesRequest request = ListCompaniesRequest.newBuilder().setParent(tenantName.toString()).build();
    for (Company actual : companyServiceClient.listCompanies(request).iterateAll()) {
        if (company.getName().equals(actual.getName())) {
            assertEquals(company.getName(), actual.getName());
            assertEquals(company.getDisplayName(), actual.getDisplayName());
            assertEquals(company.getExternalId(), actual.getExternalId());
        }
    }
}
Also used : ListCompaniesRequest(com.google.cloud.talent.v4beta1.ListCompaniesRequest) Company(com.google.cloud.talent.v4beta1.Company) Test(org.junit.Test)

Aggregations

Company (com.google.cloud.talent.v4beta1.Company)3 ListCompaniesRequest (com.google.cloud.talent.v4beta1.ListCompaniesRequest)3 Test (org.junit.Test)3 ListCompaniesPagedResponse (com.google.cloud.talent.v4.CompanyServiceClient.ListCompaniesPagedResponse)2 CompanyServiceClient (com.google.cloud.talent.v4beta1.CompanyServiceClient)2 AbstractMessage (com.google.protobuf.AbstractMessage)2 Company (com.google.cloud.talent.v4.Company)1 CompanyServiceClient (com.google.cloud.talent.v4.CompanyServiceClient)1 ListCompaniesRequest (com.google.cloud.talent.v4.ListCompaniesRequest)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