Re: Unit testing
Re: Unit testing
- Subject: Re: Unit testing
- From: Q <email@hidden>
- Date: Sat, 11 Oct 2008 01:26:54 +1000
+1 to this suggestion. It's not a matter of if, but when something
will happen to your production data if you have a default production
connection dictionary in your model. When it does happen, just hope it
isn't a migration.
On 10/10/2008, at 11:25 PM, Mike Schrag wrote:
you can add a listener in your Application class.
Or use Wonder and just set it with Properties ... That said, I
HIGHLY recommend (and you can put this on my best practices list)
that you never make the default connection dictionary in your model
the production database. This is the setup for a complete disaster
since (as you're seeing) the default state will be to mess with your
production data. Make your default connection dictionary at most a
development database (like a http://127.0.0.1/MyDatabase) and
Properties-set your production config as a deployment config.
ms
_______________________________________________
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)
Ph: +61 419 729 806
_______________________________________________
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