Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345441

Summary: JAXB tests fail because JAXB properties file is not closed
Product: [WebTools] Dali JPA Tools Reporter: Brian Vosburgh <brian.vosburgh>
Component: GeneralAssignee: Brian Vosburgh <brian.vosburgh>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: unspecifiedFlags: neil.hauge: pmc_approved+
neil.hauge: review+
Target Milestone: 3.0 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard: PMC_approved
Attachments:
Description Flags
patch none

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.