No, I was not aware of that method.

My pattern is that I put my models in frameworks and then I create unit tests 
per framework to test the model and model related functions.  IDK why this one 
failed but it is the same process I've been using on my other models/frameworks.

Given that pattern I'm not sure I understand how to use 
WOApplication.primeApplication.


On Nov 16, 2010, at 1:56 PM, Chuck Hill wrote:

> Are you not calling WOApplication.primeApplication() in your unit tests?  
> Also, IIRC, the working directory needs to be the Contents (IIRC) directory 
> of a .woa or the Resources/Java directory of a framework for NSBundle to find 
> things.  Though with the new bundling from Wonder that may have changed.
> 
> Chuck
> 
> 
> On Nov 16, 2010, at 3:54 PM, Johnny Miller wrote:
> 
>> Yes.  It is really strange.  I'm now loading the Model to the default model 
>> group with addModelWithPath in my JUnit static initializer - which put a 
>> bandaid on the issue.
>> 
>> However, in an application that uses this framework if I put 
>> System.out.println(EOModelGroup.defaultGroup()); in the application's 
>> construction the model is in there.
>> 
>> thanks,
>> 
>> Johnny
>> 
>> On Nov 16, 2010, at 1:43 PM, Chuck Hill wrote:
>> 
>>> 
>>> On Nov 16, 2010, at 2:21 PM, Johnny Miller wrote:
>>> 
>>>> Hi,
>>>> 
>>>> I'm trying to run some unit tests on a new model but for some reason the 
>>>> model is not getting loaded into the default model group. 
>>>> 
>>>> If I put System.out.println(EOModelGroup.defaultGroup());  in the static 
>>>> initializer I can see that the model is not in there.  How do I get the 
>>>> model into the defaultGroup?
>>>> 
>>>> I think this happened because I originally added the model to the wrong 
>>>> framework and then I moved it over via copy/paste.
>>> 
>>> Is it in the Resources/ folder of the project?
>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> Chuck Hill             Senior Consultant / VP Development
>>> 
>>> Practical WebObjects - for developers who want to increase their overall 
>>> knowledge of WebObjects or who are trying to solve specific problems.    
>>> http://www.global-village.net/products/practical_webobjects
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> Johnny Miller
>> Kahalawai Media Corp
>> http://www.kahalawai.com
>> 
>> 
>> 
> 
> -- 
> Chuck Hill             Senior Consultant / VP Development
> 
> Practical WebObjects - for developers who want to increase their overall 
> knowledge of WebObjects or who are trying to solve specific problems.    
> http://www.global-village.net/products/practical_webobjects
> 
> 
> 
> 
> 
> 
> 

Johnny Miller
Kahalawai Media Corp
http://www.kahalawai.com



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to