@Test public void testExport() { CrawljobEntry crawljobEntry = new CrawljobEntry( "filename", "url" ); String export = crawljobEntry.export(); String[] split = export.split( System.lineSeparator() ); String[] expected = { "text=url", "filename=filename.jpg" }; Assert.assertArrayEquals( expected, split ); }
public String export() { return MessageFormat.format( "text={0}{1}filename={2}.jpg", this.url, System.lineSeparator(), this.filename ); }
CrawljobEntry { public String export() { return MessageFormat.format( "text={0}{1}filename={2}.jpg", this.url, System.lineSeparator(), this.filename ); } }
CrawljobEntry { public String export() { return MessageFormat.format( "text={0}{1}filename={2}.jpg", this.url, System.lineSeparator(), this.filename ); } CrawljobEntry( final String filename, final String url ); }
CrawljobEntry { public String export() { return MessageFormat.format( "text={0}{1}filename={2}.jpg", this.url, System.lineSeparator(), this.filename ); } CrawljobEntry( final String filename, final String url ); String export(); }
CrawljobEntry { public String export() { return MessageFormat.format( "text={0}{1}filename={2}.jpg", this.url, System.lineSeparator(), this.filename ); } CrawljobEntry( final String filename, final String url ); String export();  }