Update Company Information
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user