summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2017-06-21 09:11:17 +0200
committerluccioman <luccioman@users.noreply.github.com>2017-06-21 09:11:17 +0200
commit1e2fb76720c81e10caa0e052352e29d575114e62 (patch)
tree058fc45a27010e6ba49d6bbc7991afc51b551c6f /test
parentc41b31dcb37404fe936c1c5eb53fad285f81c183 (diff)
Properly close test files in htmlParser unit test
Diffstat (limited to 'test')
-rw-r--r--test/java/net/yacy/document/parser/htmlParserTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/java/net/yacy/document/parser/htmlParserTest.java b/test/java/net/yacy/document/parser/htmlParserTest.java
index 54a58680e..a57c5b1c7 100644
--- a/test/java/net/yacy/document/parser/htmlParserTest.java
+++ b/test/java/net/yacy/document/parser/htmlParserTest.java
@@ -56,9 +56,10 @@ public class htmlParserTest extends TestCase {
/**
* Test of parse method, of class htmlParser.
* - test getCharset
+ * @throws IOException
*/
@Test
- public void testParse() throws MalformedURLException, Parser.Failure, InterruptedException, FileNotFoundException {
+ public void testParse() throws Parser.Failure, InterruptedException, IOException {
System.out.println("htmlParser.parse");
String[] testFiles = {
@@ -89,7 +90,7 @@ public class htmlParserTest extends TestCase {
System.out.println("detected charset = " + txt);
} finally {
if(inStream != null) {
- System.out.println("Could not close input stream on file " + file);
+ inStream.close();
}
}