Hi Anatol,

The Jetty container only starts up once, as it is started in a test decorator (see http://junit.sourceforge.net/javadoc/junit/extensions/TestSetup.html), not in the setUp method of the test itself.

The main reason to use Jetty was that Jetty is very easy to embed. Also, I used the jetty test extensions in several projects, and I thought it worked well.

Cargo looks nice (although at this moment, it looks like the Jetty extensions I build are much more flexible (e.g. you can work with datasources, configure Jetty programmatically, or provide a configuration file; also, you can work embedded, external, or even both as I do in a project where I have to test the communication of two seperate webapp with each other), but as the only currently supported embedded mode right now is Jetty 4.x, I see no added value to convert to testcases to using Cargo.

So, I do not know what the other devs think about it, but I'd be fine with sticking with the current setup.

Regards,

  Eelco


Anatol Pomozov wrote:

Hello all,

 I am about functional tests.

 Each application should have tests. Web-application also should have
 functional test which checks how different modules of application
 fit together.

The problem of functional tests is that they require full
application environment. At least web-application server.
But starting and stopping web server require a lot of time. In many cases
starting webserver only once and then running all functional tests
is preferable way.
As I can see embedded Jetty starts in setUp method for each
wicket-example TestCase. And it makes test running longer.
Probably you should look at Cargo project (http://cargo.codehaus.org/)
Cargo makes starting web-container in simple and unified way.
Cargo allows run Resin,Tomcat,WebLogic to make sure that
application works fine on different application servers.


I have done some work and modify wicket-example tests to use Cargo.
If you interesting in it I will share the code.
--anatol




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Wicket-develop mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-develop





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Wicket-develop mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to