Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void delete() throws Exception {
- Container container = LocalTransaction.wrapReturnWithListeners(() -> {
- final Container saved = createContainer();
- if (containerAPI.delete(saved, user, false))
- return saved;
- else
- throw new DotDataException("An error occurred deleting container");
- });
- AssetUtil.assertDeleted(container.getInode(), container.getIdentifier(), Inode.Type.CONTAINERS.getValue());
- }
Add Comment
Please, Sign In to add comment