Search in sources :

Example 1 with UpdateCompanyRequest

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

Aggregations

Company (com.google.cloud.talent.v4beta1.Company)1 UpdateCompanyRequest (com.google.cloud.talent.v4beta1.UpdateCompanyRequest)1 Test (org.junit.Test)1