Update Company Information

This commit is contained in:
Stuart Boston
2018-04-02 21:15:57 +01:00
parent 71fa47b48f
commit 998eb06b69
2 changed files with 14 additions and 1 deletions
@@ -48,6 +48,8 @@ public class Company extends AbstractJsonMapping implements Serializable, Identi
private String logoPath = EMPTY;
@JsonProperty("parent_company")
private Company parentCompany = null;
@JsonProperty("origin_country")
private String originCountry;
@Override
public int getId() {
@@ -114,4 +116,13 @@ public class Company extends AbstractJsonMapping implements Serializable, Identi
parent.setLogoPath(logoPath);
this.parentCompany = parent;
}
public String getOriginCountry() {
return originCountry;
}
public void setOriginCountry(String originCountry) {
this.originCountry = originCountry;
}
}
@@ -55,7 +55,9 @@ public class TmdbCompaniesTest extends AbstractTests {
LOG.info("getCompanyInfo");
Company company = instance.getCompanyInfo(ID_COMPANY);
assertTrue("No company information found", company.getId() > 0);
assertNotNull("No parent company found", company.getParentCompany());
assertNotNull("No homepage founnd", company.getHomepage());
assertNotNull("No logo found", company.getLogoPath());
assertNotNull("No origin country", company.getOriginCountry());
}
/**