@Test (expected = PermissionDenied.class) public void testSetSeedlistUnknownSeedListName() { DomainConfiguration dc = createDefaultDomainConfiguration(); String seedlistName = "default-domain.org"; SeedList domainSeedList = new SeedList(seedlistName, Arrays.asList(new String[] {"default-domain.org"})); Domain mockDomain = mock(Domain.class); when(mockDomain.getSeedList(seedlistName)).thenReturn(null); dc.setSeedLists(mockDomain, Arrays.asList(new SeedList[] {domainSeedList})); }
public void setSeedLists(Domain domain, List<SeedList> newSeedlists) { ArgumentNotValid.checkNotNull(newSeedlists, "newSeedlists"); this.seedlists = new ArrayList<SeedList>(newSeedlists.size()); for (SeedList s : newSeedlists) { addSeedList(domain, s); } }
DomainConfiguration implements Named { public void setSeedLists(Domain domain, List<SeedList> newSeedlists) { ArgumentNotValid.checkNotNull(newSeedlists, "newSeedlists"); this.seedlists = new ArrayList<SeedList>(newSeedlists.size()); for (SeedList s : newSeedlists) { addSeedList(domain, s); } } }
DomainConfiguration implements Named { public void setSeedLists(Domain domain, List<SeedList> newSeedlists) { ArgumentNotValid.checkNotNull(newSeedlists, "newSeedlists"); this.seedlists = new ArrayList<SeedList>(newSeedlists.size()); for (SeedList s : newSeedlists) { addSeedList(domain, s); } } DomainConfiguration(String theConfigName, Domain domain, List<SeedList> seedlists, List<Password> passwords);  DomainConfiguration(String theConfigName, String domainName, DomainHistory history,
            List<String> crawlertraps, List<SeedList> seedlists, List<Password> passwords); }
DomainConfiguration implements Named { public void setSeedLists(Domain domain, List<SeedList> newSeedlists) { ArgumentNotValid.checkNotNull(newSeedlists, "newSeedlists"); this.seedlists = new ArrayList<SeedList>(newSeedlists.size()); for (SeedList s : newSeedlists) { addSeedList(domain, s); } } DomainConfiguration(String theConfigName, Domain domain, List<SeedList> seedlists, List<Password> passwords);  DomainConfiguration(String theConfigName, String domainName, DomainHistory history,
            List<String> crawlertraps, List<SeedList> seedlists, List<Password> passwords); static String cfgToString(DomainConfiguration cfg); void setOrderXmlName(String ordername); void setMaxObjects(long max); void setMaxRequestRate(int maxrate); void setMaxBytes(long maxBytes); String getName(); String getComments(); String getOrderXmlName(); long getMaxObjects(); int getMaxRequestRate(); long getMaxBytes(); String getDomainName(); Iterator<SeedList> getSeedLists(); void addSeedList(Domain domain, SeedList seedlist); void setSeedLists(Domain domain, List<SeedList> newSeedlists); Iterator<Password> getPasswords(); void addPassword(Domain domain, Password password); long getExpectedNumberOfObjects(long objectLimit, long byteLimit); long minObjectsBytesLimit(long objectLimit, long byteLimit, long expectedObjectSize); void setComments(String comments); void removePassword(String passwordName); boolean usesPassword(String passwordName); void setPasswords(Domain domain, List<Password> newPasswords); Long getID(); String toString(); void setCrawlertraps(List<String> someCrawlertraps); List<String> getCrawlertraps(); DomainHistory getDomainhistory(); void setDomainhistory(DomainHistory newDomainhistory); void setName(String configName); List<AttributeAndType> getAttributesAndTypes(); void setAttributesAndTypes(List<AttributeAndType> attributesAndTypes); }
DomainConfiguration implements Named { public void setSeedLists(Domain domain, List<SeedList> newSeedlists) { ArgumentNotValid.checkNotNull(newSeedlists, "newSeedlists"); this.seedlists = new ArrayList<SeedList>(newSeedlists.size()); for (SeedList s : newSeedlists) { addSeedList(domain, s); } } DomainConfiguration(String theConfigName, Domain domain, List<SeedList> seedlists, List<Password> passwords);  DomainConfiguration(String theConfigName, String domainName, DomainHistory history,
            List<String> crawlertraps, List<SeedList> seedlists, List<Password> passwords); static String cfgToString(DomainConfiguration cfg); void setOrderXmlName(String ordername); void setMaxObjects(long max); void setMaxRequestRate(int maxrate); void setMaxBytes(long maxBytes); String getName(); String getComments(); String getOrderXmlName(); long getMaxObjects(); int getMaxRequestRate(); long getMaxBytes(); String getDomainName(); Iterator<SeedList> getSeedLists(); void addSeedList(Domain domain, SeedList seedlist); void setSeedLists(Domain domain, List<SeedList> newSeedlists); Iterator<Password> getPasswords(); void addPassword(Domain domain, Password password); long getExpectedNumberOfObjects(long objectLimit, long byteLimit); long minObjectsBytesLimit(long objectLimit, long byteLimit, long expectedObjectSize); void setComments(String comments); void removePassword(String passwordName); boolean usesPassword(String passwordName); void setPasswords(Domain domain, List<Password> newPasswords); Long getID(); String toString(); void setCrawlertraps(List<String> someCrawlertraps); List<String> getCrawlertraps(); DomainHistory getDomainhistory(); void setDomainhistory(DomainHistory newDomainhistory); void setName(String configName); List<AttributeAndType> getAttributesAndTypes(); void setAttributesAndTypes(List<AttributeAndType> attributesAndTypes);  }