From 88d884f45064bf348a986ab456b59d738c145deb Mon Sep 17 00:00:00 2001 From: slaws Date: Thu, 23 Dec 2010 13:04:47 +0000 Subject: Close input stream when reading is finished git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1052255 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/node/configuration/xml/NodeConfigurationProcessorTestCase.java | 1 + 1 file changed, 1 insertion(+) (limited to 'sca-java-2.x/trunk/modules/node-impl/src') diff --git a/sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessorTestCase.java b/sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessorTestCase.java index f591a4ea68..27c56dc6ec 100644 --- a/sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessorTestCase.java +++ b/sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessorTestCase.java @@ -66,6 +66,7 @@ public class NodeConfigurationProcessorTestCase { XMLStreamReader reader = xmlInputFactory.createXMLStreamReader(is); reader.nextTag(); NodeConfiguration config = (NodeConfiguration) processor.read(reader, context); + is.close(); StringWriter sw = new StringWriter(); XMLOutputFactory xmlOutputFactory = factories.getFactory(XMLOutputFactory.class); xmlOutputFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, Boolean.TRUE); -- cgit v1.2.3