You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Julien HENRY <he...@yahoo.fr> on 2006/11/25 18:03:32 UTC

Re : Starting/Stopping Jetty for integration testing

Thank you very much for all this informations guys.

++

Julien

----- Message d'origine ----
De : Wendy Smoak <ws...@gmail.com>
À : Maven Users List <us...@maven.apache.org>
Envoyé le : Vendredi, 24 Novembre 2006, 17h41mn 48s
Objet : Re: Starting/Stopping Jetty for integration testing

On 11/24/06, Julien HENRY <he...@yahoo.fr> wrote:

> I want to execute jetty:run at the pre-integration-test phase and stop it (like Ctrl+C) at the post-integration-test phase.

In addition to the plugin that has already been mentioned, Cargo also
has a Java API that can be very useful for integration testing.

Instead of binding plugin executions to lifecycle phases, you can
start and stop containers from Java code, for example in JUnit
TestSetup class.

Here's an example:
http://shale.apache.org/shale-test/apidocs/org/apache/shale/test/cargo/CargoTestSetup.html

http://svn.apache.org/repos/asf/shale/framework/trunk/shale-test/src/main/java/org/apache/shale/test/cargo/CargoTestSetup.java

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org








	

	
		
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com