• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOModel is not in EOModelGroup's defaultGroup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOModel is not in EOModelGroup's defaultGroup


  • Subject: Re: EOModel is not in EOModelGroup's defaultGroup
  • From: Johnny Miller <email@hidden>
  • Date: Tue, 16 Nov 2010 14:15:48 -1000

I tried adding that property to the JUnit Launch Configuration Program Arguments but it didn't seem to help.

thanks,

Johnny

On Nov 16, 2010, at 2:00 PM, Mike Schrag wrote:

> if you use the new bundle stuff, you can just run with -DNSProjectBundleEnabled=true and you'll get models loaded for free.
>
> if you don't you have to either add the models yourself, or prime the application.
>
> ms
>
> On Nov 16, 2010, at 6: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
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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
>

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: EOModel is not in EOModelGroup's defaultGroup
      • From: Mike Schrag <email@hidden>
References: 
 >EOModel is not in EOModelGroup's defaultGroup (From: Johnny Miller <email@hidden>)
 >Re: EOModel is not in EOModelGroup's defaultGroup (From: Chuck Hill <email@hidden>)
 >Re: EOModel is not in EOModelGroup's defaultGroup (From: Johnny Miller <email@hidden>)
 >Re: EOModel is not in EOModelGroup's defaultGroup (From: Chuck Hill <email@hidden>)
 >Re: EOModel is not in EOModelGroup's defaultGroup (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: EOModel is not in EOModelGroup's defaultGroup
  • Next by Date: Re: EOModel is not in EOModelGroup's defaultGroup
  • Previous by thread: Re: EOModel is not in EOModelGroup's defaultGroup
  • Next by thread: Re: EOModel is not in EOModelGroup's defaultGroup
  • Index(es):
    • Date
    • Thread