@Test(expected = IllegalArgumentException.class) public void invalidBlocklistAddedAdvertiser() { test.addBlocklist(null); }
public void addBlocklist(Blocklist blocklist) { if (blocklist == null) { throw new IllegalArgumentException("Blocklist passed to Advertiser#addBlocklist() must be non-null"); } initializeBlocklist(); this.blocklist.add(blocklist); }
Advertiser { public void addBlocklist(Blocklist blocklist) { if (blocklist == null) { throw new IllegalArgumentException("Blocklist passed to Advertiser#addBlocklist() must be non-null"); } initializeBlocklist(); this.blocklist.add(blocklist); } }
Advertiser { public void addBlocklist(Blocklist blocklist) { if (blocklist == null) { throw new IllegalArgumentException("Blocklist passed to Advertiser#addBlocklist() must be non-null"); } initializeBlocklist(); this.blocklist.add(blocklist); } Advertiser();  Advertiser(String landingPage);  Advertiser(String landingPage, String name);  Advertiser(String landingPage, String name, Long timestamp);  Advertiser(String landingPage, String name, Long timestamp, List<Blocklist> blocklist); }
Advertiser { public void addBlocklist(Blocklist blocklist) { if (blocklist == null) { throw new IllegalArgumentException("Blocklist passed to Advertiser#addBlocklist() must be non-null"); } initializeBlocklist(); this.blocklist.add(blocklist); } Advertiser();  Advertiser(String landingPage);  Advertiser(String landingPage, String name);  Advertiser(String landingPage, String name, Long timestamp);  Advertiser(String landingPage, String name, Long timestamp, List<Blocklist> blocklist); @JsonProperty("landingPageTLD") String getLandingPage(); void setLandingPage(String landingPage); String getName(); void setName(String name); @JsonProperty("sinceThisTimestamp") Long getTimestamp(); void setTimestamp(Long newTime); List<Blocklist> getBlocklist(); void setBlocklist(List<Blocklist> blocklist); void addBlocklist(Blocklist blocklist); }
Advertiser { public void addBlocklist(Blocklist blocklist) { if (blocklist == null) { throw new IllegalArgumentException("Blocklist passed to Advertiser#addBlocklist() must be non-null"); } initializeBlocklist(); this.blocklist.add(blocklist); } Advertiser();  Advertiser(String landingPage);  Advertiser(String landingPage, String name);  Advertiser(String landingPage, String name, Long timestamp);  Advertiser(String landingPage, String name, Long timestamp, List<Blocklist> blocklist); @JsonProperty("landingPageTLD") String getLandingPage(); void setLandingPage(String landingPage); String getName(); void setName(String name); @JsonProperty("sinceThisTimestamp") Long getTimestamp(); void setTimestamp(Long newTime); List<Blocklist> getBlocklist(); void setBlocklist(List<Blocklist> blocklist); void addBlocklist(Blocklist blocklist);  }