Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345441 - JAXB tests fail because JAXB properties file is not closed
Summary: JAXB tests fail because JAXB properties file is not closed
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.0 RC1   Edit
Assignee: Brian Vosburgh CLA
QA Contact:
URL:
Whiteboard: PMC_approved
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 11:10 EDT by Brian Vosburgh CLA
Modified: 2011-05-11 11:46 EDT (History)
1 user (show)

See Also:
neil.hauge: pmc_approved+
neil.hauge: review+


Attachments
patch (5.27 KB, patch)
2011-05-11 11:10 EDT, Brian Vosburgh CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Vosburgh CLA 2011-05-11 11:10:57 EDT
Created attachment 195375 [details]
patch

Every time I run the JAXB tests, I have upwards of 100 tests fail. Only the first "failure" is significant. The tear-down of test JaxbPropertiesResourceTests.testUpdateProperties() throws an exception because it cannot delete the Project files. This is because the jaxb.properties file is not closed. All following test "failures" are during setup: a new Project cannot be created because the old project still exists.

The attached patch closes the jaxb.properties file after it is read.
Comment 1 Brian Vosburgh CLA 2011-05-11 11:46:58 EDT
Patch checked into HEAD for RC1.