> -----Original Message----- > From: Allison, Bob [mailto:[EMAIL PROTECTED] > Sent: lundi 6 février 2006 17:03 > To: Maven Users List > Subject: RE: Servlet 2.4/JSP 2.0 Testing > > Hi Vincent. > > My problems with your suggestions are: > * Cactus does not support the stated specifications; from what I see in > the docs and source, it stops at Servlet 2.3 and JSP 1.2 (as far as > released binaries, I have not been able to successfully build the J2EE 1.4 > version and no one on the Cactus list answers my questions)
Yes you're right. This was a work in progress but never got released. > * It seems like it would be much easier to use an embedded Jetty 5.x > server rather than using Cargo and an external container; too bad Cactus' > JettyTestSetup class doesn't support jetty 5.x FWIW Cargo supports Jetty as an embedded container too. > * I'm not sure if linking surefire into the integration test phase will > work; it looks like there is currently nothing tied to that phase as part > of war packaging so there wouldn't be any conflicts, but I'm not sure if > it has any dependencies on what phase it is running in No, it won't work without modifying the surefire plugin. This is a work planned for the future but not done. I was just trying to explain how it could work in the future. It's definitely not working as of now... Thanks -Vincent > > -----Original Message----- > From: Vincent Massol [mailto:[EMAIL PROTECTED] > Sent: Monday, February 06, 2006 08:35 > To: 'Maven Users List' > Subject: RE: Servlet 2.4/JSP 2.0 Testing > > > Hi Bob, > > > -----Original Message----- > > From: Allison, Bob [mailto:[EMAIL PROTECTED] > > Sent: lundi 6 février 2006 14:04 > > To: Maven Users List > > Subject: OT: Servlet 2.4/JSP 2.0 Testing > > > > Does anybody know of a means to do unit testing of web servlets which > > are coded to the Servlet 2.4 specification and JSPs coded to the JSP 2.0 > > specification? Cactus doesn't seem to be there yet in any release I > > could find and I have been unable to build Cactus in a manner which > > would provide this capability (although it looks like it might be > > partially present). I asked this question on the Cactus user list and > > have not gotten any responses so I thought I would try here and see if > > any Maven users have done anything like this. > > AFAIK Alexander is working on a Cactus m2 plugin. Also you should be able > to > use the Cactus cactifywar goal using the Antrun m2 plugin. Then you can > use > the Cargo plugin to start/stop/deploy the cactified war. > > You could try binding the cactification to the pre-integration-test phase > and then bind cargo:start also in the same phase (but define after so that > the order is preserved). One issue will be that the current surefire > plugin > has no goal to run junit tests in the integration-test phase... > > But at least this is how I think it could be supported easily. > > Thanks > -Vincent > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
