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
