Delete a store programmatically
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2008 09:45 AM
Hello all,
I'm writing some unit tests for a new action that I'm writing in Java. I can find plenty of examples of how to create a store programmatically but none that delete the store afterwards… Is this at all possible? I'd like my tests to clean up correctly afterwards.
Cheers
Rob
I'm writing some unit tests for a new action that I'm writing in Java. I can find plenty of examples of how to create a store programmatically but none that delete the store afterwards… Is this at all possible? I'd like my tests to clean up correctly afterwards.
Cheers
Rob
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2008 04:33 AM
Hi,
That has been added to the current HEAD (2.9) codeline. Otherwise there isn't a way. Sorry.
That has been added to the current HEAD (2.9) codeline. Otherwise there isn't a way. Sorry.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2008 07:45 AM
For most of our Unit tests, we start a transaction, create stores(s), perform operations etc. then rollback the transaction. This removes all artifacts without explicitly deleting anything.
Kevin
Kevin
