activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elliotte Harold" <>
Subject Re: Unit testing, stup and tearDown
Date Fri, 06 Jul 2007 13:17:32 GMT
On 7/6/07, James Strachan <> wrote:
> FWIW lots of the test cases in ActiveMQ derive from
> EmbeddedBrokerTestSupport which explicitly creates/stops a broker
> which might help work around this glitch.
> e.g. in your test try creating, before the connection (and stopping
> after the connection close) a BrokerService...

Thanks. I'll try that.
> (Another smelly hack is to just fork the jvm for each test case and
> only put one test method per class :)

The Ant builds that fork the VM do seem to pass the tests more reliably than
when I run them from inside Eclipse.

Elliotte Rusty Harold

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message