Dealing with EOUtilities.localInstanceOfObject() in WOUnit
Dealing with EOUtilities.localInstanceOfObject() in WOUnit
- Subject: Dealing with EOUtilities.localInstanceOfObject() in WOUnit
- From: Paul Hoadley <email@hidden>
- Date: Sun, 10 Jul 2011 20:34:22 +0930
Hi Henrique,
I'm using WOUnit 1.1.1 to unit test some code that indirectly calls EOUtilities.localInstanceOfObject() for whatever reason on an EO that I've inserted into a MockEditingContext. Because the EO has not been saved to the (non-existent) DB, the local-instance fails and returns null, and I get an NPE. I could certainly set up an in-memory DB using H2, but I'd prefer to avoid the work.
All I want to know is whether you think it's even _possible_ for WOUnit to work around this, in which case I'll request the feature, and gladly help you test it! I assume it's not.
--
Paul.
http://logicsquad.net/
_______________________________________________
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