From 56968f851af5a6f74a6901ef512a37a35c0bcdd4 Mon Sep 17 00:00:00 2001 From: lresende Date: Mon, 11 Jan 2010 06:59:57 +0000 Subject: Minor fix to close xtream readers after each testing git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@897769 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/contribution/xml/ContributionMetadataProcessorTestCase.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sca-java-2.x/trunk/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataProcessorTestCase.java b/sca-java-2.x/trunk/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataProcessorTestCase.java index de6a8ac151..1e4dcd8023 100644 --- a/sca-java-2.x/trunk/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataProcessorTestCase.java +++ b/sca-java-2.x/trunk/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataProcessorTestCase.java @@ -93,6 +93,7 @@ public class ContributionMetadataProcessorTestCase { assertEquals(2, contribution.getDeployables().size()); assertEquals(1, contribution.getAttributeExtensions().size()); assertEquals(1, contribution.getExtensions().size()); + reader.close(); } @Test @@ -108,6 +109,7 @@ public class ContributionMetadataProcessorTestCase { Problem problem = monitor.getLastProblem(); assertNotNull(problem); assertEquals("AttributeCompositeMissing", problem.getMessageId()); + reader.close(); } @Test @@ -116,6 +118,7 @@ public class ContributionMetadataProcessorTestCase { ContributionMetadata contribution = (ContributionMetadata)staxProcessor.read(reader, context); assertNotNull(contribution); assertEquals(SCA11_NS, contribution.getSpecVersion()); + reader.close(); } @Test @@ -135,6 +138,8 @@ public class ContributionMetadataProcessorTestCase { contribution = (ContributionMetadata)staxProcessor.read(reader, context); validateContribution(contribution); + + reader.close(); } private void validateContribution(ContributionMetadata contribution) { -- cgit v1.2.3