From 4fa7ded481367fe182f199e5c8bfbe7bbd0fb4ee Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 14 Dec 2010 10:30:42 +0000 Subject: Fix testcase to close writer git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1049024 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/assembly/xml/WriteNamespacesTestCase.java | 1 + 1 file changed, 1 insertion(+) (limited to 'sca-java-2.x/trunk/modules') diff --git a/sca-java-2.x/trunk/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteNamespacesTestCase.java b/sca-java-2.x/trunk/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteNamespacesTestCase.java index f50cd5811f..cafdbda506 100644 --- a/sca-java-2.x/trunk/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteNamespacesTestCase.java +++ b/sca-java-2.x/trunk/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteNamespacesTestCase.java @@ -82,6 +82,7 @@ public class WriteNamespacesTestCase { ByteArrayOutputStream bos = new ByteArrayOutputStream(); XMLStreamWriter writer = outputFactory.createXMLStreamWriter(bos); compositeProcessor.write(composite, writer, context); + writer.close(); System.out.println(bos); // Read again -- cgit v1.2.3