diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 06:59:57 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 06:59:57 +0000 |
commit | 56968f851af5a6f74a6901ef512a37a35c0bcdd4 (patch) | |
tree | ef2b8102b0f0800c4bfba8a682fca642c3fb37e6 | |
parent | 8595fcf695df2c851d792c67545f56548f791547 (diff) |
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
-rw-r--r-- | sca-java-2.x/trunk/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataProcessorTestCase.java | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |