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());
}
}
}
Aggregations