cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: Directory layout problem with htmlunit tests
Date Fri, 08 Apr 2005 10:24:15 GMT
Bertrand Delacretaz wrote:
> Le 8 avr. 05, à 12:01, Sylvain Wallez a écrit :
> 
>> ...what about having HtmlUnitTestCase create upon first use an 
>> embedded Jetty running Cocoon?...
> 
> 
> Hmm...isn't there a big risk of leaving this second process (I assume 
> that's what you mean) hanging if the tests quit unexpectedly?
> 
> People would then have a stray java process bound to the port, which 
> would prevent other instances from starting. Might trigger a lot of 
> mailing lists requests ;-)
> 
> But I'm ok with this if you have a solution where this doesn't happen.

I think the crucial bit you missed is "embedded". Jetty is (aparently - 
I haven't yet tried) easy to embed into other Java apps. So, when the 
junit JVM stops, so does Jetty.

Or there is the option of running within a test environment, without 
using a servlet container.

Regards, Upayavira

Mime
View raw message