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

Bug 313421

Summary: [junit] Web3AnnotationReaderTest are failing
Product: [WebTools] WTP Java EE Tools Reporter: Carl Anderson <ccc>
Component: jst.j2eeAssignee: Dimitar Giormov <dimitar.giormov>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
fixes java version for java ee 6 projects to be java 6 in junit tests
none
added fixes for failing tests. none

Description Carl Anderson CLA 2010-05-18 14:46:48 EDT
Due to the changes in bug 311556, Java 6 is now required for Web 3.0.  However, when Web3AnnotationReaderTest.setupProject() is called, it calls to AbstractTest.createWebProject(), which specifies Java 5.  This causes the project to fail to be created, which causes all of the tests in Web3AnnotationReaderTest to fail.
Comment 1 Kaloyan Raev CLA 2010-05-19 03:17:01 EDT
Dimitar, can you check this tests? 
I cannot make them running at all...
Comment 2 Dimitar Giormov CLA 2010-05-19 06:17:32 EDT
Created attachment 169084 [details]
fixes java version for java ee 6 projects to be java 6 in junit tests

This fixes the original problem, but after it there are still 2 tests that fail, because of missing event from the model.
Comment 3 Dimitar Giormov CLA 2010-05-19 06:52:45 EDT
Created attachment 169088 [details]
added fixes for failing tests.
Comment 4 Dimitar Giormov CLA 2010-05-19 07:00:58 EDT
committed and released in HEAD.