use of com.google.cloud.talent.v4beta1.UpdateCompanyRequest in project java-talent by googleapis.
the class ITSystemTest method updateCompanyTest.
@Test
public void updateCompanyTest() {
String careerSiteUri = "www.example.com";
Company updateCompany = company.toBuilder().setCareerSiteUri(careerSiteUri).build();
UpdateCompanyRequest request = UpdateCompanyRequest.newBuilder().setCompany(updateCompany).build();
Company actual = companyServiceClient.updateCompany(request);
assertEquals(company.getName(), actual.getName());
assertEquals(company.getDisplayName(), actual.getDisplayName());
assertEquals(careerSiteUri, actual.getCareerSiteUri());
}
Aggregations