From fcdf1f2efa80d2f8777da5dd7689f0618ad92489 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Mon, 17 Mar 2014 01:08:43 +0000 Subject: [PATCH] Clean up tests. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1578199 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/java/org/apache/commons/csv/CSVParserTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/csv/CSVParserTest.java b/src/test/java/org/apache/commons/csv/CSVParserTest.java index a6920853..b22bc557 100644 --- a/src/test/java/org/apache/commons/csv/CSVParserTest.java +++ b/src/test/java/org/apache/commons/csv/CSVParserTest.java @@ -728,7 +728,8 @@ public class CSVParserTest { @Test(expected = IllegalArgumentException.class) public void testParseUrlCharsetNullFormat() throws Exception { - CSVParser.parse(new URL("http://commons.apache.org"), Charset.defaultCharset(), null); + final CSVParser parser = CSVParser.parse(new URL("http://commons.apache.org"), Charset.defaultCharset(), null); + parser.close(); } @Test