@Override protected long addBaseModel(long containerModelId) throws Exception { ServiceContext serviceContext = ServiceContextTestUtil.getServiceContext(group.getGroupId()); BookmarksEntry entry = BookmarksTestUtil.addEntry(containerModelId, true, serviceContext); return entry.getEntryId(); }
@Override protected long addContainerModel(long containerModelId) throws Exception { ServiceContext serviceContext = ServiceContextTestUtil.getServiceContext(group.getGroupId()); BookmarksFolder folder = BookmarksTestUtil.addFolder( containerModelId, RandomTestUtil.randomString(), serviceContext); return folder.getFolderId(); }
@Override protected void updateBaseModel(long baseModelId) throws Exception { BookmarksEntry entry = BookmarksEntryLocalServiceUtil.getEntry(baseModelId); BookmarksTestUtil.updateEntry(entry); }