Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix test methode (add throw for URIMetadataNode)

regerd5da9e5a3899
diff --git a/test/net/yacy/search/snippet/TextSnippetTest.java b/test/net/yacy/search/snippet/TextSnippetTest.java
index a038b08fb..5e703d3f8 100644
--- a/test/net/yacy/search/snippet/TextSnippetTest.java
+++ b/test/net/yacy/search/snippet/TextSnippetTest.java
@@ -43,7 +43,7 @@ public class TextSnippetTest {
}
@Test
- public void testTextSnippet() {
+ public void testTextSnippet() throws MalformedURLException {
URIMetadataNode testpage = new URIMetadataNode(doc);
testpage.addField(CollectionSchema.title.name(), "New test case");
@@ -83,7 +83,7 @@ public class TextSnippetTest {
* Test of getLineMarked method, of class TextSnippet.
*/
@Test
- public void testGetLineMarked() {
+ public void testGetLineMarked() throws MalformedURLException {
URIMetadataNode testpage = new URIMetadataNode(doc);
testpage.addField(CollectionSchema.title.name(), "New test case");
testpage.addField(CollectionSchema.keywords.name(), "junit");