diff options
| author | Henschi <to@h6l.de> | 2025-10-04 17:44:02 +0200 |
|---|---|---|
| committer | Henschi <to@h6l.de> | 2025-10-04 17:44:02 +0200 |
| commit | 2fb50ce5d6ccae0fc47b517dbcca445910895a39 (patch) | |
| tree | 0516d91535288574e446863da3d6a7481146344d /test/java | |
| parent | a7d8fc4c0a510675c012bb67d9bb54173b1c202d (diff) | |
fix test after the lastest changes
Diffstat (limited to 'test/java')
| -rw-r--r-- | test/java/net/yacy/document/parser/htmlParserTest.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/java/net/yacy/document/parser/htmlParserTest.java b/test/java/net/yacy/document/parser/htmlParserTest.java index 4e638b52a..760326ee1 100644 --- a/test/java/net/yacy/document/parser/htmlParserTest.java +++ b/test/java/net/yacy/document/parser/htmlParserTest.java @@ -1,6 +1,10 @@ package net.yacy.document.parser; import static net.yacy.document.parser.htmlParser.parseToScraper; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; import java.io.ByteArrayInputStream; import java.io.File; @@ -17,7 +21,6 @@ import java.util.Set; import org.junit.Test; -import junit.framework.TestCase; import net.yacy.cora.document.id.AnchorURL; import net.yacy.document.Document; import net.yacy.document.Parser; @@ -26,7 +29,7 @@ import net.yacy.document.parser.html.ContentScraper; import net.yacy.document.parser.html.ImageEntry; import net.yacy.document.parser.html.TagValency; -public class htmlParserTest extends TestCase { +public class htmlParserTest { @Test public void testGetRealCharsetEncoding() { @@ -436,7 +439,7 @@ public class htmlParserTest extends TestCase { String txt = scraper.getText(); System.out.println("ScraperTagTest: [" + textSource + "] = [" + txt + "]"); - assertEquals(txt, textSource); + assertEquals(txt, textSource + "."); } /** |
