cancel
Showing results for 
Search instead for 
Did you mean: 

Delete a store programmatically

dinger
Champ in-the-making
Champ in-the-making
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
2 REPLIES 2

derek
Star Contributor
Star Contributor
Hi,
That has been added to the current HEAD (2.9) codeline.  Otherwise there isn't a way.  Sorry.

kevinr
Star Contributor
Star Contributor
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