コード例 #1
0
  protected void setUpParentFolder() throws Exception {
    try {
      DLAppServiceUtil.deleteFolder(
          _group.getGroupId(), DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, "Test Folder");
    } catch (NoSuchFolderException nsfe) {
    }

    ServiceContext serviceContext =
        ServiceContextTestUtil.getServiceContext(_group.getGroupId(), TestPropsValues.getUserId());

    _parentFolder =
        DLAppServiceUtil.addFolder(
            _group.getGroupId(),
            DLFolderConstants.DEFAULT_PARENT_FOLDER_ID,
            "Test Folder",
            RandomTestUtil.randomString(),
            serviceContext);
  }