*
* @throws Exception
*/
@Test
public void testReparentFolderAndMark() throws Exception {
FolderListener folderListener = null;
BookMarkListener bookMarkListener = null;
SearchMarkListener searchMarkListener = null;
try {
/* Add */
final IFolder oldMarkParent = fFactory.createFolder(null, null, "Old parent");
final IBookMark bookMark = fFactory.createBookMark(null, oldMarkParent, new FeedLinkReference(new URI("http://www.link.com")), "bookmark");
final ISearchMark searchMark = fFactory.createSearchMark(null, oldMarkParent, "searchmark");
DynamicDAO.save(oldMarkParent);
final IFolder newMarkParent = fFactory.createFolder(null, null, "New parent");
fFactory.createFolder(null, newMarkParent, "New parent child");
DynamicDAO.save(newMarkParent);
/* Add */
final IFolder oldFolderParent = fFactory.createFolder(null, null, "Old parent");
final IFolder folder = fFactory.createFolder(null, oldFolderParent, "Folder");
DynamicDAO.save(oldFolderParent);
final IFolder newFolderParent = fFactory.createFolder(null, null, "New parent");
fFactory.createFolder(null, newFolderParent, "New parent child");
DynamicDAO.save(newFolderParent);
final boolean[] folderUpdateEventOccurred = new boolean[1];
folderListener = new FolderListener() {
public void entitiesAdded(Set<FolderEvent> events) {
fail("Unexpected event");
}
public void entitiesDeleted(Set<FolderEvent> events) {