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)
* 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
* 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

-----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]

Reply via email to