Job implements Serializable, JobInfo { public String getSeedListAsString() { return StringUtils.conjoin("\n", seedListSet); } protected  Job();  Job(Long harvestID, DomainConfiguration cfg, HeritrixTemplate orderXMLdoc, HarvestChannel channel,
            long forceMaxObjectsPerDomain,
            long forceMaxBytesPerDomain, long forceMaxJobRunningTime, int harvestNum);   Job(Long harvestID, Map<String, String> configurations, String channel, boolean snapshot,
            long forceMaxObjectsPerDomain, long forceMaxBytesPerDomain, long forceMaxJobRunningTime, JobStatus status,
            String orderXMLname, HeritrixTemplate orderXMLdoc, String seedlist, int harvestNum, Long continuationOf); void setAttributes(List<AttributeAndType> attributesAndTypes); void addConfiguration(DomainConfiguration cfg); String getOrderXMLName(); Date getActualStop(); Date getActualStart(); Date getSubmittedDate(); Date getCreationDate(); File[] getSettingsXMLfiles(); Long getOrigHarvestDefinitionID(); Long getJobID(); void setJobID(Long id); int getCountDomains(); void setActualStart(Date actualStart); void setActualStop(Date actualStop); void setOrderXMLDoc(HeritrixTemplate doc); HeritrixTemplate getOrderXMLdoc(); void setSeedList(String seedList); String getSeedListAsString(); JobStatus getStatus(); void setStatus(JobStatus newStatus); Map<String, String> getDomainConfigurationMap(); long getMaxObjectsPerDomain(); long getMaxBytesPerDomain(); void setHarvestChannel(HarvestChannel harvestChannel); String getChannel(); void setChannel(String channel); boolean isSnapshot(); void setSnapshot(boolean isSnapshot); @Override String toString(); long getForceMaxObjectsPerDomain(); long getMaxJobRunningTime(); int getHarvestNum(); void setHarvestNum(int harvestNum); String getHarvestErrors(); void appendHarvestErrors(String harvestErrors); String getHarvestErrorDetails(); void appendHarvestErrorDetails(String harvestErrorDetails); String getUploadErrors(); void appendUploadErrors(String uploadErrors); String getUploadErrorDetails(); void appendUploadErrorDetails(String uploadErrorDetails); Long getResubmittedAsJob(); void setSubmittedDate(Date submittedDate); void setCreationDate(Date creationDate); void setResubmittedAsJob(Long resubmittedAsJob); Long getContinuationOf(); @Override String getHarvestFilenamePrefix(); void setHarvestFilenamePrefix(String prefix); long getForceMaxBytesPerDomain(); boolean isConfigurationSetsObjectLimit(); boolean isConfigurationSetsByteLimit(); long getMinCountObjects(); long getMaxCountObjects(); long getTotalCountObjects(); String getHarvestAudience(); void setHarvestAudience(String theAudience); List<String> getSortedSeedList();  }
@Test public void testInternationalCharsInSeedList() throws Exception { String seed1 = "http: String seed2 = "http: String seed3 ="http: SeedList seedList = new SeedList("pølse.dk", asList(new String[] {seed1, seed2, seed3})); DomainConfiguration domainConfiguration = new DomainConfiguration( "pølse.dk", "pølse.dk", new DomainHistory(), new ArrayList<String>(), asList(new SeedList[] {seedList}), new ArrayList<Password>()); Job job = createDefaultJob(domainConfiguration); Set<String> internationalizedSeeds = Sets.newSet( "http: "http: "http: "http: "http: Set<String> seedsFromJob = new HashSet<>(); BufferedReader reader = new BufferedReader(new StringReader(job.getSeedListAsString())); String s; while ((s = reader.readLine()) != null) { seedsFromJob.add(s); } assertEquals(internationalizedSeeds, seedsFromJob); }