Re: Deleting All Objects in a Database
Re: Deleting All Objects in a Database
- Subject: Re: Deleting All Objects in a Database
- From: Johnny Miller <email@hidden>
- Date: Tue, 27 Oct 2009 16:35:29 -1000
Hi,
Can you use Migrations to tear down and recreate the database while
unit testing? If so can you please explain how?
Thanks,
Johnny
On Oct 27, 2009, at 3:31 PM, David LeBer wrote:
On 2009-10-27, at 9:14 PM, Chuck Hill wrote:
On Oct 27, 2009, at 5:57 PM, David LeBer wrote:
On 2009-10-27, at 8:29 PM, Chuck Hill wrote:
On Oct 27, 2009, at 4:34 PM, Joe Kramer wrote:
Hi all,
I am trying to make the life of the person doing our acceptance
testing easier by creating a utility that deletes all the
objects from our database without having to run our drop/create
scripts and restart our app every time she wants to start a test
from a clean environment. Is there an easy way to delete all
the objects in a database in webobjects?
Not that I can think of. In your case, it will probably be
quicker to do what you are doing.
For our integration tests we use a combination of raw sql and
DBUnit to setup and teardown the test db.
While the app is running? The problem doing this while the app is
running is mostly PK conflicts when the sequences restart. You
could invalidateAllObjects, but yanking the DB out from under a
running app _can_ produce odd results.
No, they are integration tests that are run by JUnit. My mistake, I
skimmed the OP's post, I agree he'd be best to stop, recreate/reload
and restart.
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
twitter: http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
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
w: www.kahalawai.com
e: email@hidden
p: 808.661.7962
_______________________________________________
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