Skip to content
Permalink
Browse files

Fixed JUnit test after removal of unused Transformer

  • Loading branch information...
luccioman committed Jun 19, 2018
1 parent e0dc632 commit 2c155ece776f6b66cbe90bfe583a43d54f068786
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/java/net/yacy/document/parser/html/ContentScraperTest.java
@@ -150,7 +150,7 @@ public void testGetStartDates() throws MalformedURLException, IOException {
+ "</body></html>";

ContentScraper scraper = new ContentScraper(root, 10, new HashSet<String>(), new VocabularyScraper(), 0);
final Writer writer = new TransformerWriter(null, null, scraper, null, false);
final Writer writer = new TransformerWriter(null, null, scraper, false);

FileUtils.copy(new StringReader(page), writer);
writer.close();
@@ -401,7 +401,7 @@ public void testParseMicroDataItemType() throws IOException {

for (final Entry<String, String[]> html2Result : html2Results.entrySet()) {
ContentScraper scraper = new ContentScraper(docUrl, 10, new HashSet<String>(), new VocabularyScraper(), 0);
try (final Writer writer = new TransformerWriter(null, null, scraper, null, false)) {
try (final Writer writer = new TransformerWriter(null, null, scraper, false)) {
FileUtils.copy(new StringReader(html2Result.getKey()), writer);

final Set<DigestURL> expected = new HashSet<>();

0 comments on commit 2c155ec

Please sign in to comment.
You can’t perform that action at this time.