| Summary: | [Test] Tomcat 7 Jasper Support For User Assistance | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Roland Grunberg <rgrunber> | ||||
| Component: | User Assistance | Assignee: | platform-ua-inbox <platform-ua-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | akurtakov, cgold, overholt, tjwatson | ||||
| Version: | 3.8 | Keywords: | helpwanted | ||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 341643 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Roland Grunberg
Created attachment 202032 [details]
Patch
Minor changes to MockServlet{Request,Response} to work with new Servlet 3.0 API.
Thanks for the patch. I would like to get this into Eclipse 3.8, however I'm seeing compilation errors when building against javax.servlet version 2.5. The import javax.servlet.AsyncContext cannot be resolved MockServletRequest.java /org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp line 24 Java Problem The import javax.servlet.DispatcherType cannot be resolved MockServletRequest.java /org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp line 25 Java Problem The import javax.servlet.http.Part cannot be resolved MockServletRequest.java /org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp line 36 Java Problem You're right. From what I can see the new javax.servlet 3.0 has introduced some new classes that are not in javax.servlet 2.5. They are being used by MockServletRequest. I'm not sure how to get around this to support both 2.5 and 3.0. I'll continue looking into this, but is there a possibility of creating a branch to hold the User Assistance Jasper 7 changes if they can't be brought in to work with Jasper 5 ? I'll have to look at that code and see if there is another way of accomplishing the same result, i.e. testing what cookies are written to the response. I'd rather rewrite the tests than have multiple versions of the test suite. This is not blocked by the migration to jetty 8. Instead it is blocked by bug341643. Simon A. has been doing testing on Tomcat 7 in that bug without any jetty 8. As UA is using Jetty 9 now this bug is useless to have open anymore. |