@Test public void blocklistGetsSet() { List<Blocklist> bls = null; Advertiser a = new Advertiser("acmeluxuryfurniture.com","ACME Luxury Furniture"); bls = a.getBlocklist(); assertTrue("Blocklist is initialy empty",bls.size()==0); List<Advertiser> advertisers = new LinkedList<Advertiser>(); advertisers.add(a); ssp.setBlocklists(advertisers); assertTrue("Blocklist has been set",bls.size()!=0); }
@Override public Collection<Advertiser> setBlocklists(Collection<Advertiser> advertisers) { for (Advertiser a : advertisers) { String url = a.getLandingPage(); a.setBlocklist(blocklistDB.get(url)); } return advertisers; }
SupplySideServiceRefImpl implements SupplySideService { @Override public Collection<Advertiser> setBlocklists(Collection<Advertiser> advertisers) { for (Advertiser a : advertisers) { String url = a.getLandingPage(); a.setBlocklist(blocklistDB.get(url)); } return advertisers; } }
SupplySideServiceRefImpl implements SupplySideService { @Override public Collection<Advertiser> setBlocklists(Collection<Advertiser> advertisers) { for (Advertiser a : advertisers) { String url = a.getLandingPage(); a.setBlocklist(blocklistDB.get(url)); } return advertisers; } SupplySideServiceRefImpl(); }
SupplySideServiceRefImpl implements SupplySideService { @Override public Collection<Advertiser> setBlocklists(Collection<Advertiser> advertisers) { for (Advertiser a : advertisers) { String url = a.getLandingPage(); a.setBlocklist(blocklistDB.get(url)); } return advertisers; } SupplySideServiceRefImpl(); @Override Collection<Advertiser> setBlocklists(Collection<Advertiser> advertisers); @Override byte[] getSharedSecret(String dsp); @Override String getOrganization(); }
SupplySideServiceRefImpl implements SupplySideService { @Override public Collection<Advertiser> setBlocklists(Collection<Advertiser> advertisers) { for (Advertiser a : advertisers) { String url = a.getLandingPage(); a.setBlocklist(blocklistDB.get(url)); } return advertisers; } SupplySideServiceRefImpl(); @Override Collection<Advertiser> setBlocklists(Collection<Advertiser> advertisers); @Override byte[] getSharedSecret(String dsp); @Override String getOrganization();  }