Re: JUnit4 testing of EOs: InvocationTargetException on subsequent runs
Re: JUnit4 testing of EOs: InvocationTargetException on subsequent runs
- Subject: Re: JUnit4 testing of EOs: InvocationTargetException on subsequent runs
- From: Q <email@hidden>
- Date: Fri, 11 Dec 2009 16:11:47 +1000
I ran into this recently too. It seemed to resolve itself after I did the following:
1. Update wonder
2. Ensure all tests classes that use EOF inherit from ERXTestCase
3. Add the framework to a test app (the tests were part of a framework)
4. Create a run configuration for the tests that runs from the test app's build folder
The problem I was having seemed to stem from the model somehow being unsuccessfully loaded twice, how this happened, or why the failures were unpredictable I didn't have the time to determine.
On 06/12/2009, at 1:39 PM, Paul Hoadley wrote:
> On 06/12/2009, at 1:32 PM, Mike Schrag wrote:
>
>> i ran into this in one of the wonder tests as well ... no idea what is causing it offhand, but i didn't really spend much time trying to figure it out, either.
>
> Thanks for the reply. Did you come up with a workaround, or just ignore it?
>
>
> --
> Paul.
>
> w http://logicsquad.net/
> h http://paul.hoadley.name/
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
--
Seeya...Q
Quinton Dolan - email@hidden
Gold Coast, QLD, Australia (GMT+10)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden