fix test methode (add throw for URIMetadataNode)

pull/14/head
reger 10 years ago
parent 3428b6f13b
commit d5da9e5a38

@ -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");

Loading…
Cancel
Save