• 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: EOEditingContext for JUnit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOEditingContext for JUnit


  • Subject: Re: EOEditingContext for JUnit
  • From: "Chris Meyer" <email@hidden>
  • Date: Tue, 25 Mar 2008 17:54:47 -0700

> If all you need to do is reset the model's connection privileges,
> that's easy.

Thanks! That code looks like it will do the trick for me. I don't know if I would call it "easy" though ;)


On Tue, Mar 25, 2008 at 11:46 AM, Zak Burke <email@hidden> wrote:
On Mon, Mar 24, 2008 at 4:48 PM, Chris Meyer <email@hidden> wrote:
> Thanks. That seems to work. I created a new database config, set it to
> Memory and could easily reproduce the problem.
>
> Now... is there any way to choose the database config at runtime so that for
> my regular launch of the WOApplication, it uses one database config, and for
> my launch of the JUnit tests, it uses the other config?

If all you need to do is reset the model's connection privileges,
that's easy. Add the following to your Properties file, replacing
modelname with the actual name of your model:

 _______________________________________________
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

References: 
 >EOEditingContext for JUnit (From: "Chris Meyer" <email@hidden>)
 >Re: EOEditingContext for JUnit (From: Mike Schrag <email@hidden>)
 >Re: EOEditingContext for JUnit (From: "Chris Meyer" <email@hidden>)
 >Re: EOEditingContext for JUnit (From: "Zak Burke" <email@hidden>)

  • Prev by Date: Re: Temporarily deaf instances
  • Next by Date: Re: EOClientApplicationSupport weirdness
  • Previous by thread: Re: EOEditingContext for JUnit
  • Next by thread: Re: EOEditingContext for JUnit
  • Index(es):
    • Date
    • Thread