It wasn't difficult too fix; just needed a little Java reflection to
reset the state of the static variable. Yes, static is a pain for
testing, and I find myself using it far less these days. Forking each
test would help, but it's a big hit on performance when running the
tests serially.
Rob
On Fri, Oct 22, 2010 at 1:42 PM, Stefan Willinger <ste...@ao...> wrote:
> Hi,
>
> I have read Rob's comment at the patch, that the test case has caused
> another test to fail. And after closing this patch I can't leave an
> additional commend.
>
>
> OK, when working with static fields at the same VM ... yeah this will
> happen :-)
>
> The only thing I would say is that maven can fork the testcases into
> separate Java-processes .
>
> See the following properties for the surefire-mojo:
>
> * maven.junit.fork (default=no)
>
> * maven.junit.forkmode (default=perTestCase)
>
> But I am sure - you guys know that :-)
>
> The next time I create a patch I will build and test it locally with my
> maven installation.
>
>
> Thanks for this great software (I love it more than an commercial tool)
>
> PS: If you received this message twice - please ignore it. I have sent
> the first message from an email account that was not subscribed to the
> mailing list :-)
>
> Stefan
> (wis775)
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Squirrel-sql-develop mailing list
> Squ...@li...
> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-develop
>
|