com.atlassian.confluence
Class AbstractConfluenceAcceptanceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.jwebunit.junit.WebTestCase
              extended by com.atlassian.confluence.AbstractAtlassianWebTestCase
                  extended by com.atlassian.confluence.AbstractConfluenceAcceptanceTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractAdminAcceptanceTest, AbstractBundledThemesAcceptanceTest, AbstractPermissionsAcceptanceTest, AbstractRpcAcceptanceTest, AcceptanceTestCleaner, ActionAutowireSecurityAcceptanceTest, AddPageAcceptanceTest, AddPageJavaScriptAcceptanceTest, AddPageSecurityAcceptanceTest, AntiXSSAcceptanceTest, AttachmentAcceptanceTest, BackupAndRestoreXsrfAcceptanceTest, BackupImportAcceptanceTest, BasicSoapAcceptanceTest, BigAcceptanceTest, BlogAcceptanceTest, BlogSlowAcceptanceTest, BrowseMenuAcceptanceTest, BrowseSpaceAcceptanceTest, BundledPluginsAcceptanceTest, CacheStatisticsAcceptanceTest, CamelCaseLinksAcceptanceTest, ClasspathAcceptanceTest, ColourSchemeAcceptanceTest, ColourSchemeXsrfAcceptanceTest, CommentsAcceptanceTest, ConfigureLoggingAcceptanceTest, ContentNameSearchAcceptanceTest, ContentPermissionImportAcceptanceTest, CreateSpaceAcceptanceTest, CreateSpaceXsrfAcceptanceTest, CustomHtmlAcceptanceTest, CustomHtmlXsrfAcceptanceTest, CustomizeLogoAcceptanceTest, CustomLogoMigrationAcceptanceTest, CustomStylesheetXsrfAcceptanceTest, DashboardAcceptanceTest, DateFormatAcceptanceTest, DecoratorAcceptanceTest, DiffPagesAcceptanceTest, DraftsAcceptanceTest, DraftsJavaScriptAcceptanceTest, DraftsXsrfAcceptanceTest, EditDefaultSpaceContentAcceptanceTest, EditLayoutsAcceptanceTest, EditLdapUserGroupsAcceptanceTest, EditSpaceAcceptanceTest, EditUserLdapAcceptanceTest, EmailAndLinkExternalizationAcceptanceTest, EmbeddedObjectAcceptanceTest, EventsAcceptanceTest, ExcerptMacroAcceptanceTest, FavouritePageXsrfAcceptanceTest, FileHandleTestingSuite.FileHandleTest, FiveHundredPageSecurityAcceptanceTest, FlushCacheAcceptanceTest, GalleryAcceptanceTest, GeneralConfigurationAcceptanceTest, GlobalAdminAcceptanceTest, GlobalAdminXsrfAcceptanceTest, GlobalLogoXsrfAcceptanceTest, GlobalPermissionsXsrfAcceptanceTest, GroupMembersAcceptanceTest, GroupPickerAcceptanceTest, GzipFilterAcceptanceTest, HistoricalPageViewAcceptanceTest, HtmlExportAcceptanceTest, HttpHeadersAcceptanceTest, ImportPagesFromDiskAcceptanceTest, ImportPagesXsrfAcceptanceTest, IncomingLinkAcceptanceTest, IndexingAcceptanceTest, IndexingJavaScriptAcceptanceTest, InsertImageAndLinkPopupAcceptanceTest, JohnsonFilterAcceptanceTest, KnownBugsAcceptanceTest, LabelsAcceptanceTest, LanguageAcceptanceTest, LicensingAcceptanceTest, LicensingJavaScriptAcceptanceTest, LinkTypeAcceptanceTest, ListPageAlternativesAcceptanceTest, LoggingAndProfilingXsrfAcceptanceTest, LoginAcceptanceTest, LoginTest, LogoutAcceptanceTest, MacroPluginAcceptanceTest, MacrosAcceptanceTest, MailAcceptanceTest, MailQueueXsrfAcceptanceTest, ManageUsersAndGroupsXsrfAcceptanceTest, MovePageAcceptanceTest, MultipleAttachmentsAcceptanceTest, NetworkTabAcceptanceTest, Node, NotificationContentsAcceptanceTest, NotificationsXsrfAcceptanceTest, OpenSearchAcceptanceTest, OrphanedPagesAcceptanceTest, PageEditAcceptanceTest, PageEditJavascriptAcceptanceTest, PageExportAcceptanceTest, PageHistoryAcceptanceTest, PageHistoryXsrfAcceptanceTest, PageInfoAcceptanceTest, PageListingAcceptanceTest, PageOperationsAcceptanceTest, PageTemplatesAcceptanceTest, PageTemplatesJavaScriptAcceptanceTest, PageTitlesAcceptanceTest, PageTreeMovePageAcceptanceTest, PageXsrfAcceptanceTest, PaginationAcceptanceTest, PeopleDirectoryAcceptanceTest, PersonalSpaceAcceptanceTest, PluginAcceptanceTest, PluginAdminXrsfAcceptanceTest, PluginDecorationAcceptanceTest, PopularLabelsMacroAcceptanceTest, PopupWindowsAcceptanceTest, RaiseSupportRequestXsrfAcceptanceTest, RecentlyUpdatedContentMacroAcceptanceTest, RecentlyUsedLabelsMacroAcceptanceTest, RefactoringAcceptanceTest, RemoveClassicThemeAcceptanceTest, RemovePageRestrictionsXsrfAcceptanceTest, RemoveSpaceAcceptanceTest, ReportsAcceptanceTest, RssAcceptanceTest, RssFeedBuilderAcceptanceTest, SalAcceptanceTest, SearchAcceptanceTest, SearchJavascriptAcceptanceTest, SearchSuggestionsAcceptanceTest, SecurityAcceptanceTest, ServletPluginAcceptanceTest, SetupAcceptanceTest, SignupAcceptanceTest, SiteExportAcceptanceTest, SiteImportAcceptanceTest, SpaceAdminAcceptanceTest, SpaceAdminXsrfAcceptanceTest, SpaceExportAcceptanceTest, SpaceExportJavaScriptAcceptanceTest, SpaceExportXsrfAcceptanceTest, SpaceGroupAcceptanceTest, SpaceImportAcceptanceTest, SpaceLabelsAcceptanceTest, SpaceListMacroJavaScriptAcceptanceTest, SpaceLogoXsrfAcceptanceTest, SpacePermissionsXsrfAcceptanceTest, SpacesListMacroAcceptanceTest, SpaceTemplateAcceptanceTest, SpringPluginUploadAcceptanceTest, StylesheetAcceptanceTest, SupportRequestAcceptanceTest, SystemInformationAcceptanceTest, ThemeChangeAcceptanceTest, ThemesXsrfAcceptanceTest, ThreadedCommentAcceptanceTest, ThumbnailAcceptanceTest, TimeZoneAcceptanceTest, TrackbackAcceptanceTest, TrashCanAcceptanceTest, TrustedApplicationAcceptanceTest, TrustedApplicationXsrfAcceptanceTest, UndefinedPagesAcceptanceTest, UpdateLicenseDetailsXsrfAcceptanceTest, UpdateStatusXsrfAcceptanceTest, UserFollowXsrfAcceptanceTest, UserHoverAcceptanceTest, UserMacrosAcceptanceTest, UserManagementAcceptanceTest, UserMenuAcceptanceTest, UserPickerAcceptanceTest, UserPreferencesAcceptanceTest, UserProfileAcceptanceTest, UserProfilePictureXsrfAcceptanceTest, UserProfileXsrfAcceptanceTest, UserStatusAcceptanceTest, WordExportAcceptanceTest, WysiwygRoundTripBugAcceptanceTest

public abstract class AbstractConfluenceAcceptanceTest
extends AbstractAtlassianWebTestCase

This super class provides Confluence specific functions useful in acceptance tests.


Field Summary
protected  AdminConsole adminConsole
           
protected  java.lang.String adminToken
           
static java.lang.String ANONYMOUS_USER
           
protected static java.text.SimpleDateFormat BLOG_DATE_FORMAT
           
protected static java.lang.String BROWSE_MENU_LINK_ID
           
static java.lang.String CONFLUNECE_ADMIN_GROUP
           
static java.lang.String CONFLUNECE_USERS_GROUP
           
static java.lang.String context
           
protected static boolean CROWD_MODE
           
protected static boolean DB2_MODE
           
static int DEFAULT_MAX_ATTACHMENT_SIZE
           
protected  java.util.List<java.io.File> filesToDelete
           
static UploadablePlugin FUNCTEST_RPC_PLUGIN
           
protected static boolean LDAP_MODE
           
protected  org.apache.log4j.Logger log
           
protected  MailServices mailServices
           
protected static int PAUSE_MILLIS
          The length of time to pause between actions must be longer for some databases than others.
protected static int PAUSE_MYSQL_MILLIS
           
protected  PluginHelper pluginHelper
           
static RandomnessHandler RANDOM
           
protected  ConfluenceRpc rpc
           
protected static java.lang.String RPCLOG_DEBUG
           
protected static java.lang.String RPCLOG_ERROR
           
protected static java.lang.String RPCLOG_INFO
           
protected static java.lang.String RPCLOG_SYSTEM_ERR
           
protected static java.lang.String RPCLOG_SYSTEM_OUT
           
protected static java.lang.String RPCLOG_WARN
           
protected static java.lang.String SMTP_SUBJECT_PREFIX
           
static int TCP_PORT_RANGE_END
           
static int TCP_PORT_RANGE_START
           
static User TEST_ADMIN
          Encapsulates TEST_ADMIN_USERNAME and TEST_ADMIN_PASSWORD.
static java.lang.String TEST_ADMIN_EMAIL
           
static java.lang.String TEST_ADMIN_FULLNAME
           
static java.lang.String TEST_ADMIN_PASSWORD
           
static java.lang.String TEST_ADMIN_USERNAME
           
static java.lang.String TEST_GEN_EMAIL1
           
static java.lang.String TEST_GEN_EMAIL2
           
static java.lang.String TEST_GEN_FULLNAME1
           
static java.lang.String TEST_GEN_FULLNAME2
           
static java.lang.String TEST_GEN_PASSWORD1
           
static java.lang.String TEST_GEN_PASSWORD2
           
static java.lang.String TEST_GEN_USERNAME1
           
static java.lang.String TEST_GEN_USERNAME2
           
protected static java.lang.String TEST_GROUP1
           
 Page TEST_PAGE
           
static Space TEST_SPACE
           
static Space TEST_SPACE2
           
static User TEST_USER1
           
static User TEST_USER2
           
static java.lang.String TESTMAILSERVER_HOSTNAME
           
static java.lang.String TESTMAILSERVER_NAME
           
static java.lang.String TESTPAGE_COMMENT
           
static java.lang.String TESTPAGE_CONTENT
           
static java.lang.String TESTPAGE_TITLE
           
static java.lang.String TESTSPACE_DESCRIPTION
           
static java.lang.String TESTSPACE_KEY
           
static java.lang.String TESTSPACE_TITLE
           
static java.lang.String TESTSPACE2_DESCRIPTION
           
static java.lang.String TESTSPACE2_KEY
           
static java.lang.String TESTSPACE2_TITLE
           
protected  java.lang.String testUser2Token
           
protected  java.lang.String testUserToken
           
protected  UserManagementHelper userHelper
           
protected static java.lang.String VIEW_PERSONAL_SPACE_LINK
           
protected static boolean WATCHDOG_RESIN_MODE
           
protected  org.apache.xmlrpc.XmlRpcClient xmlrpc
           
 
Fields inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase
SITE_TITLE_SUFFIX, TITLE_SEPARATOR
 
Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase
tester
 
Constructor Summary
AbstractConfluenceAcceptanceTest()
           
AbstractConfluenceAcceptanceTest(java.lang.String testName)
           
 
Method Summary
protected  void addAnonymousPermissionsToSpace(java.lang.String spaceKey, java.util.Vector permissions)
           
protected  void addComment(java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String comment)
          Deprecated. Should use ViewContentBean.addComment() instead.
protected  void addCommentToBlogPost(java.lang.String spaceKey, java.lang.String newsTitle, java.lang.String comment)
           
protected  void addPageComment(java.lang.String comment)
          Deprecated. Should use ViewContentBean.addComment() instead.
protected  void addSpaceLabel(java.lang.String labelName)
           
protected  void addUserToGroupViaHelper(java.lang.String token, java.lang.String username, java.lang.String groupname)
          Adds the given user to a groupname
protected  ViewContentBean addWatchPage()
           
protected  void assertImagePresent(java.lang.String imageName)
          Provide our own implementation of WebTestCase.assertImagePresent(String, String) that asserts the image name with a contains check rather than equals.
 void assertImageValid(java.lang.String imgSrc, java.lang.String imgAlt)
          We override the default implementation of this method as it has a bug when dealing with relative URLs Basically if we are on the page /display/blah.action and there is an image src with /images/blah.gif, the default implementation will verify that the img src matches but will attempt to request the image at the URL /display/images/blah.gif.
protected  void assertLoggedInAs(java.lang.String username)
           
protected  void assertMailReceived()
           
protected  void assertNoMailReceived()
           
protected  void attachFile(java.io.File attachment, java.lang.String comment)
          Click the attach file link, attach a given file with a given comment and submit the attachment form.
protected  void attachFileWithName(java.lang.String fileName, java.io.InputStream in, java.lang.String contentType, java.lang.String comment)
          Click the attach file link, attach a given file with a given comment and submit the attachment form.
 java.lang.String chooseRandomBaseUrl()
          Selects a baseurl from the available specified base urls.
protected  void cleanUp()
           
protected  void createBlog(java.lang.String spaceKey, java.lang.String title, java.lang.String body)
           
protected  void createGroup(java.lang.String group)
          Create a group via the Web Interface.
protected  void createGroupViaHelper(java.lang.String token, java.lang.String groupName)
          Creates a group with the given name
protected  void createMail(java.io.File mail, java.lang.String spaceKey)
           
protected  ViewContentBean createPage(java.lang.String spaceKey, java.lang.String title, java.lang.String content, java.lang.String parentPageTitle)
           
protected  ViewContentBean createPageWithViewRestrictions(java.lang.String spaceKey, java.lang.String title, java.lang.String content, java.lang.String parentPageTitle, java.lang.String viewPermissionUsers)
           
protected  void createSpaceViaWebUi(Space space)
           
protected  void createSpaceViaWebUI(java.lang.String key, java.lang.String name, java.lang.String description)
           
protected  void createSpaceViaWebUI(java.lang.String key, java.lang.String name, java.lang.String description, java.lang.String spaceGroupKey)
           
protected  void createTemplate(java.lang.String spaceName, java.lang.String templateTitle, java.lang.String templateDescription, java.lang.String templateContent)
           
protected  void createTestGroupViaHelper(java.lang.String token)
          Creates the test group via the XML-RPC interface
protected  void createTestMailServer()
           
protected  void createTestSpaceViaWebUI()
          For those times we need to ensure a space was created via the web UI (For example if the web UI may behave differently to RPC)
protected  void createTestUser1ViaHelper(java.lang.String token)
          Creates the test user via the XML-RPC interface
protected  void createTestUser2ViaHelper(java.lang.String token)
          Creates the 2nd test user via the XML-RPC interface
protected  void createUserViaHelper(java.lang.String token, java.lang.String username, java.lang.String password, java.lang.String fullName, java.lang.String email)
          Creates a new user with the given details.
protected  void createUserViaHelper(java.lang.String token, User user)
           
protected  void disableAnonymousAccess()
           
protected  void disableAnonymousAccessToSpace(java.lang.String spaceKey)
           
protected  java.io.File downloadToTempFile(java.lang.String url)
           
protected  void editBlogLabels(java.lang.String labels)
           
protected  void editBlogPostContent(java.lang.String content)
           
protected  EditContentBean editPage(java.lang.String spaceKey, java.lang.String pageTitle)
           
protected  void editPageContent(java.lang.String content)
           
protected  void editPageContent(java.lang.String content, java.lang.String comment)
           
protected  void editPageLabels(java.lang.String labels)
           
protected  void editPageWithContent(java.lang.String spaceKey, java.lang.String title, java.lang.String content)
           
protected  void editPageWithContent(java.lang.String spaceKey, java.lang.String title, java.lang.String content, java.lang.String comment)
           
protected  void editSpaceDescription(User user, java.lang.String spaceKey, java.lang.String newDescription)
           
protected  void editSpacePermsForm()
           
protected  void emptyTrash()
           
protected  void enableAnonymousAccess()
           
protected  void enableAnonymousAccessToSpace(java.lang.String spaceKey)
           
protected  void ensureTestUserCanViewTestSpace()
           
protected  void ensureUserCanViewSpace(java.lang.String user, java.lang.String spaceTitle)
           
protected  void forceViewGlobalAdmin()
           
protected  java.lang.String generateBaseUrl()
           
protected  java.io.File generateFile(java.lang.String filename, java.lang.String contents)
           
protected  java.lang.String getAppContext()
           
 java.lang.String getBaseUrl()
           
protected  java.lang.String getConfiguredBaseUrl()
          Returns the configured base URL in the Confluence app.
protected  int getCurrentMailQueueSize()
           
protected  EDU.oswego.cs.dl.util.concurrent.Latch getEventLatch(java.lang.String token, java.lang.Class eventClass, int timeout)
          Create a Latch object that will be released when the event has been fired OR when the timeout has elapsed.
protected  java.lang.String getFriendlyRelativeDate(java.util.Date now, java.util.Date date, TimeZone timeZone)
          Use the FriendlyDateFormatter to format the date relative to the "now" time.
protected  long getPageId(java.lang.String spaceKey, java.lang.String title)
           
static java.lang.String getTestProperty(java.lang.String propName)
           
static int getTestPropertyAsInt(java.lang.String propName)
           
static int getTestPropertyAsInt(java.lang.String propName, int defaultValue)
           
protected  Space getTestSpace()
           
protected  java.lang.String getTodaysBlogPostDate()
           
protected  java.util.Collection getUserGroups(java.lang.String username)
          Return the groups to which the user belongs.
protected  void goToEditGeneralConfiguration()
           
protected  void gotoPageWithError(java.lang.String url)
           
protected  void grantAnonymousUseConfluencePermission()
           
protected  void grantGlobalBrowsePermissionToGroup(java.lang.String groupName)
           
protected  void grantGlobalPermissionToGroup(java.lang.String permissionType, java.lang.String groupName)
           
protected  void grantGlobalPermissionToUser(java.lang.String permissionType, java.lang.String userName)
           
protected  void grantSpacePermissionToGroup(java.lang.String spaceKey, java.lang.String permissionType, java.lang.String groupName)
          Grant view space permissions and one other space permission to a specified group.
protected  void grantSpacePermissionToGroupAndDelegate(java.lang.String spaceKey, java.lang.String permissionType, java.lang.String groupName)
           
protected  void grantSpacePermissionToUser(java.lang.String spaceKey, java.lang.String permissionType, java.lang.String userName)
          Grant view space permissions and one other space permission to a specified user.
protected  void grantSpacePermissionToUserAndDelegate(java.lang.String spaceKey, java.lang.String permissionType, java.lang.String userName)
          Grants space permissions to the user by delegating to the rpc equivalent.
protected  void grantViewSpacePermissionToGroup(java.lang.String spaceKey, java.lang.String groupName)
           
protected  void grantViewSpacePermissionToGroupAndDelegate(java.lang.String spaceKey, java.lang.String groupName)
           
protected  void grantViewSpacePermissionToUser(java.lang.String spaceKey, java.lang.String username)
           
protected  void importGlobalBackup(java.lang.String importZipLocation, boolean waitForSuccess)
          Perform a site import via the web ui.
protected  void importMail(java.lang.String filePath, java.lang.String spaceKey)
          Creates mails in the specified space.
protected  void importMailAndAssertNoRunningTask(java.lang.String filePath, java.lang.String spaceKey)
          Creates mails in the specified space and then checks if it successfully moved to the No Long Running Task page.
protected  void importSpaceBackup(java.lang.String importZipLocation, boolean waitForSuccess)
          Import an xml exported space from the classpath into Confluence via the web ui.
protected  boolean isClustered()
           
 void logIn(User user, java.lang.String destination)
          Log in as the specified user, going to the provided URL (relative to the context path) after logging in.
protected  void logInAs(java.lang.String username, java.lang.String password)
           
protected  void logInAs(java.lang.String username, java.lang.String password, boolean fastMode, boolean rememberMe)
           
protected  void loginAs(User user)
           
protected  void logInAsAdmin()
           
protected  void logInAsAdminAtDashboard()
           
protected  void logInAsAtDashboard(java.lang.String username, java.lang.String password)
           
protected  void loginAsAtDashboard(User user)
           
protected  void loginAsTestUser()
           
protected  void loginAsTestUser2()
           
protected  void loginAsTestUserAtDashboard()
           
protected  void loginViaForm(java.lang.String username, java.lang.String password, boolean rememberMe)
           
protected  void logout()
           
static java.util.Vector<java.lang.Object> makeParams(java.lang.Object... params)
           
protected  void movePage(java.lang.String spaceKey, java.lang.String title, java.lang.String newSpaceName, boolean moveHierarchy)
           
protected  void movePage(java.lang.String spaceKey, java.lang.String title, java.lang.String newSpaceName, java.lang.String newParentPage)
           
protected  void movePageToNewParent(java.lang.String spaceKey, java.lang.String title, java.lang.String newParentPage)
           
protected  void movePageToNewParent(java.lang.String oldSpaceKey, java.lang.String title, java.lang.String newSpaceKey, java.lang.String newParentPage)
           
protected  void movePageToNewSpace(java.lang.String spaceKey, java.lang.String title, java.lang.String newSpaceKey)
           
protected  void openInsertImagePopup()
          Clicks the "Insert Image" button, if it exists, on the current page (expected to be the "Add" or "Edit" page)

Focus will then be moved to the popup window

protected  void openInsertLinkPopup()
          Clicks the "Insert Link" button, if it exists, on the current page (expected to be the "Add" or "Edit" page)

Focus will then be moved to the popup window

protected  void pause(long milliseconds)
          We use pause because mysql is not very good at distinguishing times that are close together.
protected  void rebuildIndex()
           
protected  void removeAnonymousPermissionToSpace(java.lang.String spaceKey, java.lang.String permission)
           
protected  void removeBlog(java.lang.String spaceKey, java.lang.String postDateString, java.lang.String postTitle)
          Deprecated. Use ViewContentBean.remove() instead.
protected  void removeGroup(java.lang.String groupName)
          Delete a group via the Web Interface.
protected  void removePageOrBlogById(long id)
           
protected  void removePersonalSpace(java.lang.String username)
           
protected  void removeTestUser1()
          Remove testUser1 via the Web Interface.
protected  void removeTestUser1ViaHelper(java.lang.String token)
          Removes the test user
protected  void removeUser(java.lang.String username)
          Remove a user via the Web Interface.
protected  void removeUserFromGroupViaHelper(java.lang.String token, java.lang.String username, java.lang.String groupname)
          Removes the given user from the group
protected  void removeUserViaHelper(java.lang.String token, java.lang.String username)
          Removes a user with the given username
protected  void renamePage(java.lang.String spaceKey, java.lang.String originalPageTitle, java.lang.String newPageTitle)
           
protected  void resetEmailMask()
           
protected  void restoreBaseUrl()
          Sets Confluence's baseUrl to whatever it is in the test properties.
protected  void revokeAnonymousUseConfluencePermission()
           
protected  void revokeGlobalPermissionFromGroup(java.lang.String permissionType, java.lang.String groupName)
          Removes the specified global permission (from SpacePermission) from the given group name
protected  void revokeGlobalPermissionFromUser(java.lang.String permissionType, User user)
          Removes the specified global permission (from SpacePermission) from the given group name
protected  void revokeSpacePermissionFromGroup(java.lang.String spaceKey, java.lang.String permissionType, java.lang.String groupName)
          Remove a space permission from a specified group.
protected  void revokeSpacePermissionFromUser(java.lang.String spaceKey, java.lang.String permissionType, java.lang.String userName)
          Remove a space permission from a specified user.
protected  java.util.Hashtable rpcAddComment(java.lang.String token, long pageId, long parentCommentId, java.lang.String comment)
          Adds a comment to a page via the XML-RPC interface
protected  java.util.Hashtable rpcAddComment(java.lang.String token, long pageId, java.lang.String comment)
          Adds a comment to a page via the XML-RPC interface
protected  java.util.Hashtable rpcAddComment(java.lang.String token, java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String comment)
          Adds a comment to a page via the XML-RPC interface
protected  void rpcAddLabelToBlog(java.lang.String token, java.lang.String label, long blogId)
          Adds a label to the blogpost with the given page ID
protected  void rpcAddLabelToPage(java.lang.String token, java.lang.String label, long pageId)
          Adds a label to the Page with the given page ID
protected  void rpcAddLabelToPage(java.lang.String token, java.lang.String label, java.lang.String spaceKey, java.lang.String pageTitle)
          Adds a label to the Page with the given details

This method retrieves the ID for the given Page and passes it onto the appropriate rpcAddLabelToPage method

protected  void rpcAddLabelToSpace(java.lang.String token, java.lang.String label, java.lang.String spaceKey)
          Adds a label to a space
protected  java.lang.String rpcAddTestComment(java.lang.String token)
           
protected  java.lang.String rpcChangeLogLevel(java.lang.String loggerName, java.lang.String level)
          Change the specified logger to a new level.
protected  void rpcClearIndex()
           
protected  void rpcClearQueue(java.lang.String token, java.lang.String queueName)
           
protected  void rpcConvertToPersonalSpace(java.lang.String token, java.lang.String userName, java.lang.String spaceKey, java.lang.String newName, boolean updateLinks)
           
protected  long rpcCreateBlogPost(java.lang.String token, java.lang.String spaceKey, java.lang.String postTitle, java.lang.String postContent)
          Creates a new blog entry via the XML-RPC interface
protected  long rpcCreateBlogPost(java.lang.String token, java.lang.String spaceKey, java.lang.String postTitle, java.lang.String postContent, java.util.Date lastModification)
           
protected  long rpcCreatePage(java.lang.String token, java.lang.String spaceKey, java.lang.String title, java.lang.String content)
          Creates a page via the XML-RPC interface
protected  long rpcCreatePage(java.lang.String token, java.lang.String spaceKey, java.lang.String title, java.lang.String content, long parentPageId)
          Creates a page via the XML-RPC interface
protected  java.util.Hashtable rpcCreatePersonalSpace(java.lang.String token, java.lang.String name, java.lang.String description, java.lang.String username)
          Creates a personal space via the XML-RPC interface
protected  java.util.Hashtable rpcCreateSpace(java.lang.String token, java.lang.String key, java.lang.String name, java.lang.String description)
           
protected  java.util.Hashtable rpcCreateSpace(java.lang.String token, java.lang.String key, java.lang.String name, java.lang.String description, java.lang.String spaceGroup)
          Creates a space via the XML-RPC interface
protected  java.util.Hashtable rpcCreateSpaceGroup(java.lang.String token, java.lang.String key, java.lang.String name)
           
protected  long rpcCreateTestPage(java.lang.String token)
          Creates the test page in the test space via the XML-RPC interface
protected  java.util.Hashtable rpcCreateTestSpace(java.lang.String token)
          Creates the test space via the XML-RPC interface

This method first checks if the test space exists, and logs a message if it does

protected  java.util.Hashtable rpcCreateTestSpace2(java.lang.String token)
          Creates the 2nd test space via the XML-RPC interface

This method first checks if the test space exists, and logs a message if it does

protected  void rpcEditBlogPost(java.lang.String token, long entryId, java.lang.String newTitle, java.lang.String newContent)
          Modifies the page with the given details via the XML-RPC interface
protected  java.util.Hashtable rpcEditComment(java.lang.String token, long pageId, long commentId, java.lang.String comment)
           
protected  void rpcEditPage(java.lang.String token, java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String newTitle, java.lang.String newContent)
          Modifies the page with the given details via the XML-RPC interface
protected  void rpcFlushAllCaches(java.lang.String token)
          Flush all the caches via rpc.
protected  void rpcFlushIndexQueue()
           
protected  void rpcFlushMailQueue()
           
protected  java.lang.String rpcGetAdminToken()
          Retrieves a token for the admin user
protected  long rpcGetBlogPostId(java.lang.String token, java.lang.String spaceKey, int dayOfMonth, java.lang.String postTitle)
          Retrieves the ID of a blog post with the given details
protected  java.util.Vector rpcGetChildren(java.lang.String token, long pageId)
          Returns the ordered id list of pages that are direct children of a given page.
protected  java.util.Vector rpcGetComments(java.lang.String token, java.lang.String pageId)
           
protected  java.lang.String rpcGetLocalisedText(java.lang.String messageKey)
          Returns the localised message text for the given key, retrieved from the application via RPC.
protected  int rpcGetMailQueueSize()
           
protected  long rpcGetPageId(java.lang.String token, java.lang.String spaceKey, java.lang.String pageTitle)
          Retrieves the page ID for a page with the given details
protected  java.util.List rpcGetPageLabels(java.lang.String token, long pageId)
          Retrieves the labels assigned to a Page with the given page ID
protected  java.util.List rpcGetPageLabels(java.lang.String token, java.lang.String spaceKey, java.lang.String pageTitle)
          Retrieves the labels assigned to a page with the given details

This method retrieves the page ID and passes it onto the appropriate rpcGetPageLabels method

protected  java.lang.String rpcGetTestUser2Token()
          Retrieves a token for the test user 2
protected  java.lang.String rpcGetTestUserToken()
          Retrieves a token for the test user
protected  java.util.Vector rpcGetTopLevelPages(java.lang.String token, java.lang.String spaceKey)
          Returns the ordered id list of top-level pages in a given space.
protected  java.util.Vector rpcGetUserGroups(java.lang.String token, java.lang.String username)
           
 java.util.List rpcGetUsersForActivity(java.lang.String key)
           
protected  java.lang.String rpcGetUserToken(java.lang.String username, java.lang.String password)
          Retrieves the user token for the given details, for use with the XML-RPC interface
protected  java.lang.String rpcGetUserToken(User user)
           
protected  int rpcGetVersionForPage(java.lang.String token, long pageId)
           
protected  void rpcGrantAnonymousSpacePermission(java.lang.String token, java.lang.String permission, java.lang.String spaceKey)
          Grants the given permission to the anonymous user for the given space
protected  void rpcGrantGlobalPermission(java.lang.String token, java.lang.String permission, java.lang.String entityName)
          Grants the given global permission to a user.
protected  void rpcGrantSpacePermission(java.lang.String token, java.lang.String permission, java.lang.String username, java.lang.String spaceKey)
          Grants the given permission to a user for a particular Space
protected  void rpcGrantViewSpacePermission(java.lang.String token, java.lang.String entityName, java.lang.String spaceKey)
          Convenience method for granting VIEWSPACE permission to a particular user
protected  boolean rpcHasGroup(java.lang.String token, java.lang.String groupName)
           
protected  boolean rpcHasUser(java.lang.String token, java.lang.String username)
           
protected  boolean rpcLog(java.lang.String destination, java.lang.String message)
           
protected  void rpclogCommandOutput(java.lang.String commandString)
           
protected  void rpcLogOutAdmin()
           
protected  void rpcMovePage(java.lang.String token, long sourcePageId, long targetPageId, java.lang.String position)
          Moves a page to a location relative to another page.
protected  void rpcMovePageToTopLevel(java.lang.String token, long pageId, java.lang.String targetSpaceKey)
          Moves a page to the top of a given space.
protected  void rpcPauseJob(java.lang.String jobName)
           
protected  void rpcRemoveAllSpaceGroups(java.lang.String token)
           
protected  void rpcRemoveAnonymousSpacePermission(java.lang.String token, java.lang.String permission, java.lang.String spaceKey)
          Removes the given permission for the anonymous user from the given space
protected  void rpcRemoveAttachment(java.lang.String token, java.lang.String attachmentFileName, long contentId)
          Remove an attachment from a page or blog.
protected  void rpcRemoveComment(java.lang.String token, long commentId)
          Remove a comment, identified by its id.
protected  void rpcRemoveComment(java.lang.String token, java.lang.String commentContent, java.lang.String spaceKey, java.lang.String pageTitle)
          Remove a comment, identified by its location and content, from a page.
protected  void rpcRemoveGlobalPermissions(java.lang.String token, java.lang.String permission, java.lang.String username)
          Removes the given global permission for a user
protected  void rpcRemoveGroup(java.lang.String token, java.lang.String groupname)
          Removes the given group
protected  void rpcRemoveLabelFromPage(java.lang.String token, java.lang.String label, long pageId)
          Removes the given label from the page with the given page ID
protected  void rpcRemoveLabelFromPage(java.lang.String token, java.lang.String label, java.lang.String spaceKey, java.lang.String pageTitle)
           
protected  void rpcRemoveLabelFromSpace(java.lang.String token, java.lang.String label, java.lang.String spaceKey)
          Removes a label from a space
protected  void rpcRemovePage(java.lang.String token, java.lang.String spaceKey, long pageId)
           
protected  void rpcRemoveSpace(java.lang.String token, java.lang.String spaceKey)
          Remove a space with the given key via the XML-RPC interface
protected  void rpcRemoveSpacePermission(java.lang.String token, java.lang.String permission, java.lang.String username, java.lang.String spaceKey)
          Removes the given permission for a user for a particular Space
protected  void rpcRemoveUserUncleanly(java.lang.String token, java.lang.String username)
          Removes a user with the given username but do not remove their dependent permissions or pages.
protected  void rpcRenderContent(java.lang.String token, java.lang.String spaceKey, long pageId, java.lang.String newContent)
           
protected  void rpcRestoreAbstractPage(long id)
           
protected  void rpcResumeJob(java.lang.String jobName)
           
 void rpcStartActivity(java.lang.String key, java.lang.String user)
           
protected  java.util.Hashtable rpcStoreBlogEntry(java.lang.String token, long pageId, java.lang.String comment)
           
protected  void rpcTrashPage(java.lang.String token, long pageId)
          Trashes (removes) a page with the given ID

This method converts the long into a String and calls the appropriate rpcTrashPage method

protected  void rpcTrashPage(java.lang.String token, java.lang.String pageId)
          Trashes (removes) a page with the given ID
protected  void rpcTrashPage(java.lang.String token, java.lang.String spaceKey, java.lang.String pageTitle)
          Trashes (removes) a page with the given details

This method retrieves the page with the given details and calls the appropriate rpcTrashPage method

protected  void rpcTriggerJob(java.lang.String jobName)
           
protected  void search(java.lang.String query)
           
protected  void setAllowCamelCase(boolean allow)
           
protected  void setAnonymousRemoteApi(boolean enabled)
           
protected  void setAttachmentMaxUploadSize(long max)
           
protected  void setDraftSaveInterval(long seconds)
           
protected  void setEditPermissionsForGroups(java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String groups)
          Edit the permissions of the specified page as the current user.
protected  void setEditPermissionsForUsers(java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String users)
          Edit the permissions of the specified page as the current user.
protected  void setEmailMask(java.lang.String setting)
           
protected  void setEnableWysiwyg(boolean enabled)
           
protected  void setExternalUserManagement(boolean enabled)
           
 void setHttpCompression(boolean compressHttp)
          Set the Http Compression setting according to the given parameter.
protected  void setPageLabels(java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String labels)
          Add the specified label to the page via the pages edit view.
protected  void setPublicSignup(boolean enabled)
           
protected  void setRemoteApi(boolean enabled)
           
protected  void setSharedMode(boolean enable)
           
protected  void setThreadedComments(boolean enable)
           
protected  void setUp()
           
protected  void setUp(java.lang.String beginAt)
          Default setUp method.
protected  void setViewPermissionsForGroups(java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String groups)
          Edit the permissions of the specified page as the current user.
protected  void setViewPermissionsForUsers(java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String users)
          Edit the permissions of the specified page as the current user.
protected  void showAllUsers()
           
protected  void shutdownQuartz()
           
protected  void stopTestMailServer()
           
 java.lang.String stripContext(java.lang.String context, java.lang.String url)
          This function takes a URL like /context/foo/bar/baz..., and the context, and returns foo/bar/baz
protected  void tearDown()
          Default tearDown method.
protected  void viewAbstractPage(long entityId)
          Views the page for a Page or BlogPost (AbstractPage)
protected  void viewBlog(java.lang.String spaceKey, java.lang.String datePath, java.lang.String title)
           
protected  void viewEditBlogPostPage(long entryId)
          Views the edit blog post page for the post with the given ID
protected  void viewGlobalAdmin()
           
protected  void viewGlobalPermissions()
           
protected  void viewHomepage()
           
protected  void viewLabel(java.lang.String spaceKey, java.lang.String labelName)
           
protected  void viewLanguages()
           
protected  ViewContentBean viewPage(java.lang.String spaceKey, java.lang.String pageTitle)
           
 void viewPeopleDirectory()
           
protected  SpaceAdmin viewSpaceAdmin()
           
protected  void viewSpaceAdvanced()
           
protected  void viewSpaceContent()
           
protected  void viewSpacePermissions(java.lang.String spaceKey)
           
protected  void viewSpaceSummary()
           
protected  void viewSpaceSummary(java.lang.String spaceKey)
           
protected  void viewTodaysBlog(java.lang.String spaceKey, java.lang.String title)
           
protected  void viewTrash()
           
protected  void viewUser(java.lang.String name)
           
protected  boolean waitForLongRunningTaskToComplete(int timeout, java.lang.String errorText)
          Wait for the current long running task to complete.
protected  ViewContentBean watchPage(java.lang.String spaceKey, java.lang.String pageTitle)
           
protected  void watchSpace(java.lang.String spaceKey)
           
protected  java.lang.Object xmlRpcExecute(java.lang.String method, java.util.Vector params)
          Wrapper for calling the xml rpc methods and handles the exceptions properly.
 
Methods inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase
assertCollectionContainsKeyWithValue, assertContains, assertDoesNotContain, assertElementNotPresentByXPath, assertElementPresentByXPath, assertEndsWith, assertLinkPresent, assertLinkPresentWithHref, assertLinkPresentWithHrefContaining, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithTextAndHref, assertPageTitleEquals, assertServerResponseContains, assertServerResponseDoesNotContain, assertStartsWith, assertStatusCode, assertTextNotPresent, assertTextsPresentInOrder, assertTextsPresentInOrder, assertTitleEquals, assertTitleEquals, getGroupFromResponse, getWindowCount
 
Methods inherited from class net.sourceforge.jwebunit.junit.WebTestCase
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementPresent, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHiddenFieldPresent, assertImagePresent, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithText, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertSubmitButtonNotPresent, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertTableEquals, assertTableEquals, assertTableMatch, assertTableMatch, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTableRowsEqual, assertTableRowsEqual, assertTableRowsMatch, assertTableRowsMatch, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTextPresent, assertTitleEqualsKey, assertTitleEqualsKey, assertTitleMatch, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getDialog, getElementAttributByXPath, getElementTextByXPath, getFormElementValue, getImage, getMessage, getMessage, getPageSource, getServeurResponse, getTable, getTestContext, getTester, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, reset, runBare, saveAs, selectOption, selectOptionByValue, selectOptions, selectOptionsByValues, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setScriptingEnabled, setTestContext, setTestingEngineKey, setTextField, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected final transient org.apache.log4j.Logger log

RPCLOG_INFO

protected static final java.lang.String RPCLOG_INFO
See Also:
Constant Field Values

RPCLOG_DEBUG

protected static final java.lang.String RPCLOG_DEBUG
See Also:
Constant Field Values

RPCLOG_WARN

protected static final java.lang.String RPCLOG_WARN
See Also:
Constant Field Values

RPCLOG_ERROR

protected static final java.lang.String RPCLOG_ERROR
See Also:
Constant Field Values

RPCLOG_SYSTEM_OUT

protected static final java.lang.String RPCLOG_SYSTEM_OUT
See Also:
Constant Field Values

RPCLOG_SYSTEM_ERR

protected static final java.lang.String RPCLOG_SYSTEM_ERR
See Also:
Constant Field Values

context

public static final java.lang.String context

LDAP_MODE

protected static final boolean LDAP_MODE

CROWD_MODE

protected static final boolean CROWD_MODE

DB2_MODE

protected static final boolean DB2_MODE

WATCHDOG_RESIN_MODE

protected static final boolean WATCHDOG_RESIN_MODE

TEST_ADMIN_USERNAME

public static final java.lang.String TEST_ADMIN_USERNAME

TEST_ADMIN_PASSWORD

public static final java.lang.String TEST_ADMIN_PASSWORD

TEST_ADMIN_FULLNAME

public static final java.lang.String TEST_ADMIN_FULLNAME

TEST_ADMIN_EMAIL

public static final java.lang.String TEST_ADMIN_EMAIL

TEST_ADMIN

public static final User TEST_ADMIN
Encapsulates TEST_ADMIN_USERNAME and TEST_ADMIN_PASSWORD.


ANONYMOUS_USER

public static final java.lang.String ANONYMOUS_USER
See Also:
Constant Field Values

CONFLUNECE_USERS_GROUP

public static final java.lang.String CONFLUNECE_USERS_GROUP
See Also:
Constant Field Values

CONFLUNECE_ADMIN_GROUP

public static final java.lang.String CONFLUNECE_ADMIN_GROUP
See Also:
Constant Field Values

TEST_GEN_USERNAME1

public static final java.lang.String TEST_GEN_USERNAME1

TEST_GEN_PASSWORD1

public static final java.lang.String TEST_GEN_PASSWORD1

TEST_GEN_FULLNAME1

public static final java.lang.String TEST_GEN_FULLNAME1

TEST_GEN_EMAIL1

public static final java.lang.String TEST_GEN_EMAIL1

TEST_GEN_USERNAME2

public static final java.lang.String TEST_GEN_USERNAME2

TEST_GEN_PASSWORD2

public static final java.lang.String TEST_GEN_PASSWORD2

TEST_GEN_FULLNAME2

public static final java.lang.String TEST_GEN_FULLNAME2

TEST_GEN_EMAIL2

public static final java.lang.String TEST_GEN_EMAIL2

TEST_GROUP1

protected static final java.lang.String TEST_GROUP1

TESTSPACE_TITLE

public static final java.lang.String TESTSPACE_TITLE

TESTSPACE_KEY

public static final java.lang.String TESTSPACE_KEY

TESTSPACE_DESCRIPTION

public static final java.lang.String TESTSPACE_DESCRIPTION

TESTSPACE2_TITLE

public static final java.lang.String TESTSPACE2_TITLE

TESTSPACE2_KEY

public static final java.lang.String TESTSPACE2_KEY

TESTSPACE2_DESCRIPTION

public static final java.lang.String TESTSPACE2_DESCRIPTION

TESTPAGE_TITLE

public static final java.lang.String TESTPAGE_TITLE

TESTPAGE_CONTENT

public static final java.lang.String TESTPAGE_CONTENT

TESTPAGE_COMMENT

public static final java.lang.String TESTPAGE_COMMENT

TEST_USER1

public static final User TEST_USER1

TEST_USER2

public static final User TEST_USER2

TEST_SPACE

public static final Space TEST_SPACE

TEST_SPACE2

public static final Space TEST_SPACE2

TEST_PAGE

public Page TEST_PAGE

TESTMAILSERVER_NAME

public static final java.lang.String TESTMAILSERVER_NAME
See Also:
Constant Field Values

TESTMAILSERVER_HOSTNAME

public static final java.lang.String TESTMAILSERVER_HOSTNAME

TCP_PORT_RANGE_START

public static final int TCP_PORT_RANGE_START

TCP_PORT_RANGE_END

public static final int TCP_PORT_RANGE_END

RANDOM

public static final RandomnessHandler RANDOM

DEFAULT_MAX_ATTACHMENT_SIZE

public static final int DEFAULT_MAX_ATTACHMENT_SIZE
See Also:
Constant Field Values

FUNCTEST_RPC_PLUGIN

public static final UploadablePlugin FUNCTEST_RPC_PLUGIN

PAUSE_MILLIS

protected static final int PAUSE_MILLIS
The length of time to pause between actions must be longer for some databases than others. Specifically, we know that we store dates in 1 second granularity in Oracle.


PAUSE_MYSQL_MILLIS

protected static final int PAUSE_MYSQL_MILLIS
See Also:
Constant Field Values

BLOG_DATE_FORMAT

protected static final java.text.SimpleDateFormat BLOG_DATE_FORMAT

BROWSE_MENU_LINK_ID

protected static final java.lang.String BROWSE_MENU_LINK_ID
See Also:
Constant Field Values

SMTP_SUBJECT_PREFIX

protected static final java.lang.String SMTP_SUBJECT_PREFIX
See Also:
Constant Field Values

xmlrpc

protected org.apache.xmlrpc.XmlRpcClient xmlrpc

rpc

protected ConfluenceRpc rpc

adminToken

protected java.lang.String adminToken

testUserToken

protected java.lang.String testUserToken

testUser2Token

protected java.lang.String testUser2Token

filesToDelete

protected java.util.List<java.io.File> filesToDelete

pluginHelper

protected PluginHelper pluginHelper

userHelper

protected UserManagementHelper userHelper

mailServices

protected MailServices mailServices

adminConsole

protected AdminConsole adminConsole

VIEW_PERSONAL_SPACE_LINK

protected static final java.lang.String VIEW_PERSONAL_SPACE_LINK
See Also:
Constant Field Values
Constructor Detail

AbstractConfluenceAcceptanceTest

public AbstractConfluenceAcceptanceTest(java.lang.String testName)

AbstractConfluenceAcceptanceTest

public AbstractConfluenceAcceptanceTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

setUp

protected void setUp(java.lang.String beginAt)
              throws java.lang.Exception
Default setUp method. Establishes XML-RPC connection and sets the base URL. Also configures LDAP repository.

Parameters:
beginAt - the initial path (relative to the context path) to begin at
Throws:
java.lang.Exception - from super

tearDown

protected void tearDown()
                 throws java.lang.Exception
Default tearDown method. Removes any files which were added to the filesToDelete list.

Overrides:
tearDown in class AbstractAtlassianWebTestCase
Throws:
java.lang.Exception

generateBaseUrl

protected java.lang.String generateBaseUrl()
Returns:
a random base URL selected from the nodes in the cluster. Used for switching between nodes for cluster testing.

chooseRandomBaseUrl

public java.lang.String chooseRandomBaseUrl()
Selects a baseurl from the available specified base urls. Base urls are specified by properties of the form baseurl, baseurl2 etc. The randomness is introduced by RANDOM which is created with a seed that is logged so that the tests may be reproduced by passing a test property named "seed".

Note that the search for baseurls stops at the first number that isn't specified. Eg if baseurl4 is specified but baseurl3 is not specified, then baseurl4 will not be discovered.

Returns:
a randomly selected baseurl or null if no baseurls are specified.

getConfiguredBaseUrl

protected java.lang.String getConfiguredBaseUrl()
Returns the configured base URL in the Confluence app. This is the same as the base URL of node #1 in a cluster.

Returns:
it

shutdownQuartz

protected void shutdownQuartz()

cleanUp

protected void cleanUp()
                throws java.lang.Exception
Throws:
java.lang.Exception

rpcPauseJob

protected void rpcPauseJob(java.lang.String jobName)

rpcResumeJob

protected void rpcResumeJob(java.lang.String jobName)

rpcTriggerJob

protected void rpcTriggerJob(java.lang.String jobName)

rpcFlushAllCaches

protected void rpcFlushAllCaches(java.lang.String token)
                          throws java.io.IOException,
                                 org.apache.xmlrpc.XmlRpcException
Flush all the caches via rpc. Note that this clears all the cached rpc tokens.

Parameters:
token - of the user who is flushing the caches.
Throws:
java.io.IOException - e
org.apache.xmlrpc.XmlRpcException - e

rpcFlushIndexQueue

protected void rpcFlushIndexQueue()

logInAs

protected void logInAs(java.lang.String username,
                       java.lang.String password)

loginAs

protected void loginAs(User user)

logInAsAtDashboard

protected void logInAsAtDashboard(java.lang.String username,
                                  java.lang.String password)

loginAsAtDashboard

protected void loginAsAtDashboard(User user)

logIn

public void logIn(User user,
                  java.lang.String destination)
Log in as the specified user, going to the provided URL (relative to the context path) after logging in.

Parameters:
user - the user to log in as.
destination - where to go after logging in. Pass 'null' to go to the default homepage.

logInAs

protected void logInAs(java.lang.String username,
                       java.lang.String password,
                       boolean fastMode,
                       boolean rememberMe)

loginViaForm

protected void loginViaForm(java.lang.String username,
                            java.lang.String password,
                            boolean rememberMe)

logInAsAdmin

protected void logInAsAdmin()

logInAsAdminAtDashboard

protected void logInAsAdminAtDashboard()

loginAsTestUser

protected void loginAsTestUser()

loginAsTestUserAtDashboard

protected void loginAsTestUserAtDashboard()

loginAsTestUser2

protected void loginAsTestUser2()

logout

protected void logout()

assertLoggedInAs

protected void assertLoggedInAs(java.lang.String username)

rpcGetUserToken

protected java.lang.String rpcGetUserToken(User user)

rpcGetUserToken

protected java.lang.String rpcGetUserToken(java.lang.String username,
                                           java.lang.String password)
Retrieves the user token for the given details, for use with the XML-RPC interface

Parameters:
username - the username
password - the password
Returns:
Token for the logged in user

rpcLog

protected boolean rpcLog(java.lang.String destination,
                         java.lang.String message)

rpcChangeLogLevel

protected java.lang.String rpcChangeLogLevel(java.lang.String loggerName,
                                             java.lang.String level)
Change the specified logger to a new level.

Parameters:
loggerName -
level -
Returns:
the previous level of the logger.

rpcGetLocalisedText

protected java.lang.String rpcGetLocalisedText(java.lang.String messageKey)
Returns the localised message text for the given key, retrieved from the application via RPC. The message will be localised to the administrator's locale.

If the key is not found, the key itself will be returned, as per ConfluenceActionSupport.getText(String).

Parameters:
messageKey - the message key to internationalise.
Returns:
a localised message in the administrator's locale
See Also:
FuncTestRpcHandler.getLocalisedText(String, String), ConfluenceActionSupport.getText(String)

rpcGetMailQueueSize

protected int rpcGetMailQueueSize()

rpcGetAdminToken

protected java.lang.String rpcGetAdminToken()
Retrieves a token for the admin user

Returns:
Token for the admin user

rpcLogOutAdmin

protected void rpcLogOutAdmin()

rpcGetTestUserToken

protected java.lang.String rpcGetTestUserToken()
Retrieves a token for the test user

Returns:
Token for the test user

rpcGetTestUser2Token

protected java.lang.String rpcGetTestUser2Token()
Retrieves a token for the test user 2

Returns:
Token for the test user

makeParams

public static java.util.Vector<java.lang.Object> makeParams(java.lang.Object... params)

getTestProperty

public static java.lang.String getTestProperty(java.lang.String propName)
Parameters:
propName - the property name
Returns:
the property value
Throws:
java.lang.NullPointerException - if propertiesManager has not been initialised

getTestPropertyAsInt

public static int getTestPropertyAsInt(java.lang.String propName)

getTestPropertyAsInt

public static int getTestPropertyAsInt(java.lang.String propName,
                                       int defaultValue)

rpcCreateSpace

protected java.util.Hashtable rpcCreateSpace(java.lang.String token,
                                             java.lang.String key,
                                             java.lang.String name,
                                             java.lang.String description)

rpcCreateSpace

protected java.util.Hashtable rpcCreateSpace(java.lang.String token,
                                             java.lang.String key,
                                             java.lang.String name,
                                             java.lang.String description,
                                             java.lang.String spaceGroup)
Creates a space via the XML-RPC interface

Parameters:
token - the authentication token
key - the key of the Space
name - the name of the Space
description - the description of the Space
spaceGroup - the space group key, can be null
Returns:
the space as a hashtable

rpcCreateSpaceGroup

protected java.util.Hashtable rpcCreateSpaceGroup(java.lang.String token,
                                                  java.lang.String key,
                                                  java.lang.String name)

rpcConvertToPersonalSpace

protected void rpcConvertToPersonalSpace(java.lang.String token,
                                         java.lang.String userName,
                                         java.lang.String spaceKey,
                                         java.lang.String newName,
                                         boolean updateLinks)

rpcCreatePersonalSpace

protected java.util.Hashtable rpcCreatePersonalSpace(java.lang.String token,
                                                     java.lang.String name,
                                                     java.lang.String description,
                                                     java.lang.String username)
Creates a personal space via the XML-RPC interface

Parameters:
token - the authentication token
name - the name of the Space
description - the description of the Space
username - name of the user to own the space
Returns:
the space as a hashtable

rpcCreateTestSpace

protected java.util.Hashtable rpcCreateTestSpace(java.lang.String token)
Creates the test space via the XML-RPC interface

This method first checks if the test space exists, and logs a message if it does

Parameters:
token - the authentication token
Returns:
the space as a hash table

rpcCreateTestSpace2

protected java.util.Hashtable rpcCreateTestSpace2(java.lang.String token)
Creates the 2nd test space via the XML-RPC interface

This method first checks if the test space exists, and logs a message if it does

Parameters:
token - the authentication token
Returns:
the space as a hashtable

rpcHasGroup

protected boolean rpcHasGroup(java.lang.String token,
                              java.lang.String groupName)

rpcHasUser

protected boolean rpcHasUser(java.lang.String token,
                             java.lang.String username)

createSpaceViaWebUI

protected void createSpaceViaWebUI(java.lang.String key,
                                   java.lang.String name,
                                   java.lang.String description)

createSpaceViaWebUI

protected void createSpaceViaWebUI(java.lang.String key,
                                   java.lang.String name,
                                   java.lang.String description,
                                   java.lang.String spaceGroupKey)

createSpaceViaWebUi

protected void createSpaceViaWebUi(Space space)

createTestSpaceViaWebUI

protected void createTestSpaceViaWebUI()
For those times we need to ensure a space was created via the web UI (For example if the web UI may behave differently to RPC)


rpcRemoveSpace

protected void rpcRemoveSpace(java.lang.String token,
                              java.lang.String spaceKey)
Remove a space with the given key via the XML-RPC interface

Parameters:
token - the authentication token
spaceKey - the space to remove

rpcRemoveAllSpaceGroups

protected void rpcRemoveAllSpaceGroups(java.lang.String token)
                                throws java.io.IOException,
                                       org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

getTestSpace

protected Space getTestSpace()

rpcCreatePage

protected long rpcCreatePage(java.lang.String token,
                             java.lang.String spaceKey,
                             java.lang.String title,
                             java.lang.String content)
Creates a page via the XML-RPC interface

Parameters:
token - the authentication token
spaceKey - the key for the space the page will be created in
title - the title of the new page
content - the content of the new page
Returns:
the page id

rpcCreatePage

protected long rpcCreatePage(java.lang.String token,
                             java.lang.String spaceKey,
                             java.lang.String title,
                             java.lang.String content,
                             long parentPageId)
Creates a page via the XML-RPC interface

Parameters:
token - the authentication token
spaceKey - the key for the space the page will be created in
title - the title of the new page
content - the content of the new page
parentPageId - the id of the parent page, 0 if none.
Returns:
the page id

rpcRemovePage

protected void rpcRemovePage(java.lang.String token,
                             java.lang.String spaceKey,
                             long pageId)

rpcRestoreAbstractPage

protected void rpcRestoreAbstractPage(long id)

rpcRemoveAttachment

protected void rpcRemoveAttachment(java.lang.String token,
                                   java.lang.String attachmentFileName,
                                   long contentId)
Remove an attachment from a page or blog.

Parameters:
attachmentFileName - The name of the attachment
contentId - the id of the page or blogpost to which the file is currently attached

rpcGetChildren

protected java.util.Vector rpcGetChildren(java.lang.String token,
                                          long pageId)
Returns the ordered id list of pages that are direct children of a given page.

Parameters:
token - the authentication token
pageId - the page to find children for
Returns:
List of page id Longs

rpcGetTopLevelPages

protected java.util.Vector rpcGetTopLevelPages(java.lang.String token,
                                               java.lang.String spaceKey)
Returns the ordered id list of top-level pages in a given space.

Parameters:
token - the authentication token
spaceKey - the key of the space to find top-level pages for
Returns:
List of page id Longs

rpcMovePage

protected void rpcMovePage(java.lang.String token,
                           long sourcePageId,
                           long targetPageId,
                           java.lang.String position)
                    throws org.apache.xmlrpc.XmlRpcException
Moves a page to a location relative to another page.

Parameters:
token - the authentication token
sourcePageId - the id of the page being moved
targetPageId - the id of the page the source page is moved in relation to
position - the relative position to move to, see MovePageCommand
Throws:
org.apache.xmlrpc.XmlRpcException

rpcMovePageToTopLevel

protected void rpcMovePageToTopLevel(java.lang.String token,
                                     long pageId,
                                     java.lang.String targetSpaceKey)
Moves a page to the top of a given space.

Parameters:
token - the authentication token
pageId - the id of the page being moved
targetSpaceKey - the space to move the page to

rpcCreateTestPage

protected long rpcCreateTestPage(java.lang.String token)
Creates the test page in the test space via the XML-RPC interface

Parameters:
token - the authentication token
Returns:
the page id

createPage

protected ViewContentBean createPage(java.lang.String spaceKey,
                                     java.lang.String title,
                                     java.lang.String content,
                                     java.lang.String parentPageTitle)

createPageWithViewRestrictions

protected ViewContentBean createPageWithViewRestrictions(java.lang.String spaceKey,
                                                         java.lang.String title,
                                                         java.lang.String content,
                                                         java.lang.String parentPageTitle,
                                                         java.lang.String viewPermissionUsers)

rpcGetPageId

protected long rpcGetPageId(java.lang.String token,
                            java.lang.String spaceKey,
                            java.lang.String pageTitle)
Retrieves the page ID for a page with the given details

Parameters:
token - the authentication token
spaceKey - the key of the Space the Page is located in
pageTitle - the title of the page
Returns:
The ID of the page

rpcGetVersionForPage

protected int rpcGetVersionForPage(java.lang.String token,
                                   long pageId)

getPageId

protected long getPageId(java.lang.String spaceKey,
                         java.lang.String title)

viewPage

protected ViewContentBean viewPage(java.lang.String spaceKey,
                                   java.lang.String pageTitle)

viewAbstractPage

protected void viewAbstractPage(long entityId)
Views the page for a Page or BlogPost (AbstractPage)

Parameters:
entityId - the ID of the AbstractPage

viewLabel

protected void viewLabel(java.lang.String spaceKey,
                         java.lang.String labelName)

rpcEditPage

protected void rpcEditPage(java.lang.String token,
                           java.lang.String spaceKey,
                           java.lang.String pageTitle,
                           java.lang.String newTitle,
                           java.lang.String newContent)
Modifies the page with the given details via the XML-RPC interface

Parameters:
token - the authentication token
spaceKey - the key of the Space the Page is in
pageTitle - the current title of the Page
newTitle - the new title of the Page (null if the same)
newContent - the new content of the Page (null if the same)

editPage

protected EditContentBean editPage(java.lang.String spaceKey,
                                   java.lang.String pageTitle)

movePageToNewSpace

protected void movePageToNewSpace(java.lang.String spaceKey,
                                  java.lang.String title,
                                  java.lang.String newSpaceKey)

movePage

protected void movePage(java.lang.String spaceKey,
                        java.lang.String title,
                        java.lang.String newSpaceName,
                        boolean moveHierarchy)

movePageToNewParent

protected void movePageToNewParent(java.lang.String spaceKey,
                                   java.lang.String title,
                                   java.lang.String newParentPage)

movePageToNewParent

protected void movePageToNewParent(java.lang.String oldSpaceKey,
                                   java.lang.String title,
                                   java.lang.String newSpaceKey,
                                   java.lang.String newParentPage)

movePage

protected void movePage(java.lang.String spaceKey,
                        java.lang.String title,
                        java.lang.String newSpaceName,
                        java.lang.String newParentPage)

openInsertLinkPopup

protected void openInsertLinkPopup()
Clicks the "Insert Link" button, if it exists, on the current page (expected to be the "Add" or "Edit" page)

Focus will then be moved to the popup window


openInsertImagePopup

protected void openInsertImagePopup()
Clicks the "Insert Image" button, if it exists, on the current page (expected to be the "Add" or "Edit" page)

Focus will then be moved to the popup window


rpcTrashPage

protected void rpcTrashPage(java.lang.String token,
                            java.lang.String pageId)
Trashes (removes) a page with the given ID

Parameters:
token - the authentication token
pageId - ID of the page to be trashed

rpcTrashPage

protected void rpcTrashPage(java.lang.String token,
                            long pageId)
Trashes (removes) a page with the given ID

This method converts the long into a String and calls the appropriate rpcTrashPage method

Parameters:
token - the authentication token
pageId - ID of the page to be trashed

rpcTrashPage

protected void rpcTrashPage(java.lang.String token,
                            java.lang.String spaceKey,
                            java.lang.String pageTitle)
Trashes (removes) a page with the given details

This method retrieves the page with the given details and calls the appropriate rpcTrashPage method

Parameters:
token - the authentication token
spaceKey - key of the Space the page is in
pageTitle - title of the page to be trashed

rpcRenderContent

protected void rpcRenderContent(java.lang.String token,
                                java.lang.String spaceKey,
                                long pageId,
                                java.lang.String newContent)
                         throws org.apache.xmlrpc.XmlRpcException,
                                java.io.IOException
Throws:
org.apache.xmlrpc.XmlRpcException
java.io.IOException

rpcCreateBlogPost

protected long rpcCreateBlogPost(java.lang.String token,
                                 java.lang.String spaceKey,
                                 java.lang.String postTitle,
                                 java.lang.String postContent)
Creates a new blog entry via the XML-RPC interface

Parameters:
token - the authentication token
spaceKey - the key of the Space the blog entry will be created in
postTitle - the title of the post to be created
postContent - the content of the post to be created
Returns:
returns the id of the new blogpost

rpcCreateBlogPost

protected long rpcCreateBlogPost(java.lang.String token,
                                 java.lang.String spaceKey,
                                 java.lang.String postTitle,
                                 java.lang.String postContent,
                                 java.util.Date lastModification)

createBlog

protected void createBlog(java.lang.String spaceKey,
                          java.lang.String title,
                          java.lang.String body)

rpcEditBlogPost

protected void rpcEditBlogPost(java.lang.String token,
                               long entryId,
                               java.lang.String newTitle,
                               java.lang.String newContent)
Modifies the page with the given details via the XML-RPC interface

Parameters:
token - the authentication token
entryId - the ID of the blog entry
newTitle - the new title of the Blog Post (null if the same)
newContent - the new content of the Blog Post (null if the same)

viewEditBlogPostPage

protected void viewEditBlogPostPage(long entryId)
Views the edit blog post page for the post with the given ID

Parameters:
entryId - the ID of the blog post

rpcGetBlogPostId

protected long rpcGetBlogPostId(java.lang.String token,
                                java.lang.String spaceKey,
                                int dayOfMonth,
                                java.lang.String postTitle)
Retrieves the ID of a blog post with the given details

Parameters:
token - the authentication token
spaceKey - the key of the Space the blog post is located int
dayOfMonth - the day of the month the blog post was made
postTitle - the title of the blog post
Returns:
ID of the post

viewTodaysBlog

protected void viewTodaysBlog(java.lang.String spaceKey,
                              java.lang.String title)

getTodaysBlogPostDate

protected java.lang.String getTodaysBlogPostDate()

viewBlog

protected void viewBlog(java.lang.String spaceKey,
                        java.lang.String datePath,
                        java.lang.String title)

removeBlog

@Deprecated
protected void removeBlog(java.lang.String spaceKey,
                                     java.lang.String postDateString,
                                     java.lang.String postTitle)
Deprecated. Use ViewContentBean.remove() instead.


createTemplate

protected void createTemplate(java.lang.String spaceName,
                              java.lang.String templateTitle,
                              java.lang.String templateDescription,
                              java.lang.String templateContent)

rpcAddComment

protected java.util.Hashtable rpcAddComment(java.lang.String token,
                                            long pageId,
                                            java.lang.String comment)
Adds a comment to a page via the XML-RPC interface

Parameters:
token - the authentication token
pageId - the ID of the page to add the comment to
comment - the text of the comment
Returns:
the comment as a hash table

rpcAddComment

protected java.util.Hashtable rpcAddComment(java.lang.String token,
                                            long pageId,
                                            long parentCommentId,
                                            java.lang.String comment)
Adds a comment to a page via the XML-RPC interface

Parameters:
token - the authentication token
pageId - the ID of the page to add the comment to
parentCommentId - the ID of the parent comment to add the comment to
comment - the text of the comment
Returns:
the comment as a hash table

rpcEditComment

protected java.util.Hashtable rpcEditComment(java.lang.String token,
                                             long pageId,
                                             long commentId,
                                             java.lang.String comment)

rpcGetComments

protected java.util.Vector rpcGetComments(java.lang.String token,
                                          java.lang.String pageId)

rpcStoreBlogEntry

protected java.util.Hashtable rpcStoreBlogEntry(java.lang.String token,
                                                long pageId,
                                                java.lang.String comment)

rpcAddTestComment

protected java.lang.String rpcAddTestComment(java.lang.String token)

rpcAddComment

protected java.util.Hashtable rpcAddComment(java.lang.String token,
                                            java.lang.String spaceKey,
                                            java.lang.String pageTitle,
                                            java.lang.String comment)
Adds a comment to a page via the XML-RPC interface

Parameters:
token - the authentication token
spaceKey - the space key of the page
pageTitle - the title of the page
comment - the text of the comment
Returns:
the comment as a hash table

rpcRemoveComment

protected void rpcRemoveComment(java.lang.String token,
                                long commentId)
                         throws org.apache.xmlrpc.XmlRpcException,
                                java.io.IOException
Remove a comment, identified by its id.

Parameters:
token - authentication token of user
commentId - the id of the comment to remove
Throws:
junit.framework.AssertionFailedError - if the comment cannot be found or removed.
org.apache.xmlrpc.XmlRpcException
java.io.IOException

rpcRemoveComment

protected void rpcRemoveComment(java.lang.String token,
                                java.lang.String commentContent,
                                java.lang.String spaceKey,
                                java.lang.String pageTitle)
                         throws org.apache.xmlrpc.XmlRpcException,
                                java.io.IOException
Remove a comment, identified by its location and content, from a page.

Parameters:
token - authentication token of user
commentContent - content of the comment to remove. This is used to identify the comment
spaceKey - identifies the space containing the comment
pageTitle - identifies the page
Throws:
junit.framework.AssertionFailedError - if the comment cannot be found or removed.
org.apache.xmlrpc.XmlRpcException
java.io.IOException

addCommentToBlogPost

protected void addCommentToBlogPost(java.lang.String spaceKey,
                                    java.lang.String newsTitle,
                                    java.lang.String comment)

rpcAddLabelToPage

protected void rpcAddLabelToPage(java.lang.String token,
                                 java.lang.String label,
                                 long pageId)
Adds a label to the Page with the given page ID

Parameters:
token - the authentication token
label - the label to be added to the Page
pageId - the ID of the page

rpcAddLabelToBlog

protected void rpcAddLabelToBlog(java.lang.String token,
                                 java.lang.String label,
                                 long blogId)
Adds a label to the blogpost with the given page ID

Parameters:
token - the authentication token
label - the label to be added to the Page
blogId - the ID of the page

rpcAddLabelToPage

protected void rpcAddLabelToPage(java.lang.String token,
                                 java.lang.String label,
                                 java.lang.String spaceKey,
                                 java.lang.String pageTitle)
Adds a label to the Page with the given details

This method retrieves the ID for the given Page and passes it onto the appropriate rpcAddLabelToPage method

Parameters:
token - the authentication token
spaceKey - the key of the Space the page is located in
pageTitle - the title of the Page
label - the label to be added to the page

rpcAddLabelToSpace

protected void rpcAddLabelToSpace(java.lang.String token,
                                  java.lang.String label,
                                  java.lang.String spaceKey)
Adds a label to a space

Parameters:
token - the token identifying the user
label - the label name (namespaces allowed)
spaceKey - the space key

rpcGetPageLabels

protected java.util.List rpcGetPageLabels(java.lang.String token,
                                          long pageId)
Retrieves the labels assigned to a Page with the given page ID

Parameters:
token - the authentication token
pageId - the ID of the page
Returns:
A list of label names as Strings

rpcGetPageLabels

protected java.util.List rpcGetPageLabels(java.lang.String token,
                                          java.lang.String spaceKey,
                                          java.lang.String pageTitle)
Retrieves the labels assigned to a page with the given details

This method retrieves the page ID and passes it onto the appropriate rpcGetPageLabels method

Parameters:
token - the authentication token
spaceKey - the key of the space the Page is located in
pageTitle - the title of the Page
Returns:
A list of label names as Strings

rpcRemoveLabelFromPage

protected void rpcRemoveLabelFromPage(java.lang.String token,
                                      java.lang.String label,
                                      long pageId)
Removes the given label from the page with the given page ID

Parameters:
token - the authentication token
label - the label name to be removed
pageId - the page ID of the page with the label

rpcRemoveLabelFromPage

protected void rpcRemoveLabelFromPage(java.lang.String token,
                                      java.lang.String label,
                                      java.lang.String spaceKey,
                                      java.lang.String pageTitle)

rpcRemoveLabelFromSpace

protected void rpcRemoveLabelFromSpace(java.lang.String token,
                                       java.lang.String label,
                                       java.lang.String spaceKey)
Removes a label from a space

Parameters:
token - the token identifying the user
label - the label name (namespaces allowed)
spaceKey - the space key

createUserViaHelper

protected void createUserViaHelper(java.lang.String token,
                                   java.lang.String username,
                                   java.lang.String password,
                                   java.lang.String fullName,
                                   java.lang.String email)
Creates a new user with the given details. Depending on the value of the ldapMode test property the user is created in an ldap repository or via the XML-RPC interface.

Parameters:
token - the authentication token
username - the username of the new user
password - the password of the new user
fullName - the full name of the new user
email - the email of the new user

createUserViaHelper

protected void createUserViaHelper(java.lang.String token,
                                   User user)

createTestUser1ViaHelper

protected void createTestUser1ViaHelper(java.lang.String token)
Creates the test user via the XML-RPC interface

Parameters:
token - the authentication token

createTestUser2ViaHelper

protected void createTestUser2ViaHelper(java.lang.String token)
Creates the 2nd test user via the XML-RPC interface

Parameters:
token - the authentication token

createTestGroupViaHelper

protected void createTestGroupViaHelper(java.lang.String token)
Creates the test group via the XML-RPC interface

Parameters:
token - the authentication token

viewUser

protected void viewUser(java.lang.String name)

removePersonalSpace

protected void removePersonalSpace(java.lang.String username)

removeUserViaHelper

protected void removeUserViaHelper(java.lang.String token,
                                   java.lang.String username)
Removes a user with the given username

Parameters:
token - the authentication token
username - the username of the user to remove

rpcRemoveUserUncleanly

protected void rpcRemoveUserUncleanly(java.lang.String token,
                                      java.lang.String username)
                               throws java.io.IOException,
                                      org.apache.xmlrpc.XmlRpcException
Removes a user with the given username but do not remove their dependent permissions or pages.

Parameters:
token - the authentication token
username - the username of the user to remove
Throws:
org.apache.xmlrpc.XmlRpcException - if there were problems removing the user
java.io.IOException

removeTestUser1ViaHelper

protected void removeTestUser1ViaHelper(java.lang.String token)
Removes the test user

Parameters:
token - the authentication token

removeUser

protected void removeUser(java.lang.String username)
Remove a user via the Web Interface. This should only be used where the web interface itself is being tested. It cannot be used when the UserRepository being tested is unmodifiable.


removeTestUser1

protected void removeTestUser1()
Remove testUser1 via the Web Interface. This should only be used where the web interface itself is being tested. It cannot be used when the UserRepository being tested is unmodifiable.


createGroupViaHelper

protected void createGroupViaHelper(java.lang.String token,
                                    java.lang.String groupName)
Creates a group with the given name

Parameters:
token - the authentication token
groupName - the name of the group to be created

createGroup

protected void createGroup(java.lang.String group)
Create a group via the Web Interface. This should only be used where the web interface itself is being tested. It cannot be used when the UserRepository being tested is unmodifiable.


addUserToGroupViaHelper

protected void addUserToGroupViaHelper(java.lang.String token,
                                       java.lang.String username,
                                       java.lang.String groupname)
Adds the given user to a groupname

Parameters:
token - the authentication token
username - the username of the user to be added
groupname - the group the user should be added to

removeUserFromGroupViaHelper

protected void removeUserFromGroupViaHelper(java.lang.String token,
                                            java.lang.String username,
                                            java.lang.String groupname)
Removes the given user from the group

Parameters:
token - the authentication token
username - the username of the user to be removed
groupname - the name of the group the user should be removed from

rpcGetUserGroups

protected java.util.Vector rpcGetUserGroups(java.lang.String token,
                                            java.lang.String username)

rpcRemoveGroup

protected void rpcRemoveGroup(java.lang.String token,
                              java.lang.String groupname)
Removes the given group

Parameters:
token - the authentication token
groupname - the group to be removed

removeGroup

protected void removeGroup(java.lang.String groupName)
Delete a group via the Web Interface. This should only be used where the web interface itself is being tested. It cannot be used when the UserRepository being tested is unmodifiable.


viewPeopleDirectory

public void viewPeopleDirectory()

viewGlobalAdmin

protected void viewGlobalAdmin()

viewGlobalPermissions

protected void viewGlobalPermissions()

viewLanguages

protected void viewLanguages()

viewSpaceAdmin

protected SpaceAdmin viewSpaceAdmin()

viewSpaceSummary

protected void viewSpaceSummary()

viewSpaceSummary

protected void viewSpaceSummary(java.lang.String spaceKey)

viewSpacePermissions

protected void viewSpacePermissions(java.lang.String spaceKey)

viewHomepage

protected void viewHomepage()

viewSpaceContent

protected void viewSpaceContent()

viewTrash

protected void viewTrash()

setThreadedComments

protected void setThreadedComments(boolean enable)

setSharedMode

protected void setSharedMode(boolean enable)

grantGlobalBrowsePermissionToGroup

protected void grantGlobalBrowsePermissionToGroup(java.lang.String groupName)

grantGlobalPermissionToGroup

protected void grantGlobalPermissionToGroup(java.lang.String permissionType,
                                            java.lang.String groupName)

grantGlobalPermissionToUser

protected void grantGlobalPermissionToUser(java.lang.String permissionType,
                                           java.lang.String userName)

revokeGlobalPermissionFromUser

protected void revokeGlobalPermissionFromUser(java.lang.String permissionType,
                                              User user)
Removes the specified global permission (from SpacePermission) from the given group name

Parameters:
permissionType - the permission type to remove
user - who will lose the permission

revokeGlobalPermissionFromGroup

protected void revokeGlobalPermissionFromGroup(java.lang.String permissionType,
                                               java.lang.String groupName)
Removes the specified global permission (from SpacePermission) from the given group name

Parameters:
permissionType - the permissiont type
groupName - the group to remove the permission from

ensureTestUserCanViewTestSpace

protected void ensureTestUserCanViewTestSpace()

editSpacePermsForm

protected void editSpacePermsForm()

ensureUserCanViewSpace

protected void ensureUserCanViewSpace(java.lang.String user,
                                      java.lang.String spaceTitle)

enableAnonymousAccess

protected void enableAnonymousAccess()

disableAnonymousAccess

protected void disableAnonymousAccess()

setEnableWysiwyg

protected void setEnableWysiwyg(boolean enabled)

setExternalUserManagement

protected void setExternalUserManagement(boolean enabled)

setPublicSignup

protected void setPublicSignup(boolean enabled)

enableAnonymousAccessToSpace

protected void enableAnonymousAccessToSpace(java.lang.String spaceKey)

disableAnonymousAccessToSpace

protected void disableAnonymousAccessToSpace(java.lang.String spaceKey)

addAnonymousPermissionsToSpace

protected void addAnonymousPermissionsToSpace(java.lang.String spaceKey,
                                              java.util.Vector permissions)

removeAnonymousPermissionToSpace

protected void removeAnonymousPermissionToSpace(java.lang.String spaceKey,
                                                java.lang.String permission)

setRemoteApi

protected void setRemoteApi(boolean enabled)

setAnonymousRemoteApi

protected void setAnonymousRemoteApi(boolean enabled)

rpcGrantSpacePermission

protected void rpcGrantSpacePermission(java.lang.String token,
                                       java.lang.String permission,
                                       java.lang.String username,
                                       java.lang.String spaceKey)
Grants the given permission to a user for a particular Space

Parameters:
token - the authentication token
permission - the String corresponding to the permission
username - the user to grant the permission to
spaceKey - the key of the Space to grant the permission in

rpcGrantGlobalPermission

protected void rpcGrantGlobalPermission(java.lang.String token,
                                        java.lang.String permission,
                                        java.lang.String entityName)
Grants the given global permission to a user.

Parameters:
token - the authentication token
permission - the String corresponding to the permission
entityName - the username or group name to grant the permission to

rpcRemoveSpacePermission

protected void rpcRemoveSpacePermission(java.lang.String token,
                                        java.lang.String permission,
                                        java.lang.String username,
                                        java.lang.String spaceKey)
Removes the given permission for a user for a particular Space

Parameters:
token - the authentication token
permission - the String corresponding to the permission
username - the user to remove the permission from
spaceKey - the key of the Space to grant the permission in

rpcRemoveGlobalPermissions

protected void rpcRemoveGlobalPermissions(java.lang.String token,
                                          java.lang.String permission,
                                          java.lang.String username)
Removes the given global permission for a user

Parameters:
token - the authentication token
permission - the String corresponding to the permission
username - the user to remove the permission from

rpcGrantViewSpacePermission

protected void rpcGrantViewSpacePermission(java.lang.String token,
                                           java.lang.String entityName,
                                           java.lang.String spaceKey)
Convenience method for granting VIEWSPACE permission to a particular user

Parameters:
token - the authentication token
entityName - the username or group name
spaceKey - the key of the Space to grant the permission in

grantViewSpacePermissionToUser

protected void grantViewSpacePermissionToUser(java.lang.String spaceKey,
                                              java.lang.String username)

grantViewSpacePermissionToGroup

protected void grantViewSpacePermissionToGroup(java.lang.String spaceKey,
                                               java.lang.String groupName)

grantViewSpacePermissionToGroupAndDelegate

protected void grantViewSpacePermissionToGroupAndDelegate(java.lang.String spaceKey,
                                                          java.lang.String groupName)

grantSpacePermissionToGroup

protected void grantSpacePermissionToGroup(java.lang.String spaceKey,
                                           java.lang.String permissionType,
                                           java.lang.String groupName)
Grant view space permissions and one other space permission to a specified group. Grants the permission via the web interface. Must already be logged in as a user with permission to set permissions on the space. Group must not already have view space permissions for the space.

Parameters:
spaceKey - the key of the existing space.
permissionType - one of the strings in SpacePermission, eg SpacePermission.SYSTEM_ADMINISTRATOR_PERMISSION
groupName - The name of the group.

grantSpacePermissionToGroupAndDelegate

protected void grantSpacePermissionToGroupAndDelegate(java.lang.String spaceKey,
                                                      java.lang.String permissionType,
                                                      java.lang.String groupName)

grantSpacePermissionToUser

protected void grantSpacePermissionToUser(java.lang.String spaceKey,
                                          java.lang.String permissionType,
                                          java.lang.String userName)
Grant view space permissions and one other space permission to a specified user. Grants the permission via the web interface. Must already be logged in as a user with permission to set permissions on the space. User must not already have view space permissions for the space.

Parameters:
spaceKey - the key of the existing space.
permissionType - one of the strings in SpacePermission, eg SpacePermission.SYSTEM_ADMINISTRATOR_PERMISSION
userName - The name of the user.

grantSpacePermissionToUserAndDelegate

protected void grantSpacePermissionToUserAndDelegate(java.lang.String spaceKey,
                                                     java.lang.String permissionType,
                                                     java.lang.String userName)
Grants space permissions to the user by delegating to the rpc equivalent. Used to minify the amount of changes required for many existing calls.

Parameters:
spaceKey - to grant the space permission to
permissionType - to grant
userName - the name of the user to grant the permission to.

revokeSpacePermissionFromGroup

protected void revokeSpacePermissionFromGroup(java.lang.String spaceKey,
                                              java.lang.String permissionType,
                                              java.lang.String groupName)
Remove a space permission from a specified group. Removes the permission via the web interface. Must already be logged in as a group with permission to set permissions on the space.

Parameters:
spaceKey - the key of the existing space.
permissionType - one of the strings in SpacePermission, eg SpacePermission.SYSTEM_ADMINISTRATOR_PERMISSION
groupName - The name of the group.

revokeSpacePermissionFromUser

protected void revokeSpacePermissionFromUser(java.lang.String spaceKey,
                                             java.lang.String permissionType,
                                             java.lang.String userName)
Remove a space permission from a specified user. Removes the permission via the web interface. Must already be logged in as a user with permission to set permissions on the space.

Parameters:
spaceKey - the key of the existing space.
permissionType - one of the strings in SpacePermission, eg SpacePermission.SYSTEM_ADMINISTRATOR_PERMISSION
userName - The name of the user.

rpcGrantAnonymousSpacePermission

protected void rpcGrantAnonymousSpacePermission(java.lang.String token,
                                                java.lang.String permission,
                                                java.lang.String spaceKey)
Grants the given permission to the anonymous user for the given space

Parameters:
token - the token identifying the current user
permission - the permission to give the anonymous user
spaceKey - the space to grant the permission on

rpcRemoveAnonymousSpacePermission

protected void rpcRemoveAnonymousSpacePermission(java.lang.String token,
                                                 java.lang.String permission,
                                                 java.lang.String spaceKey)
Removes the given permission for the anonymous user from the given space

Parameters:
token - the token identifying the current user
permission - the permission to remove
spaceKey - the space to remove the permission on

rpcStartActivity

public void rpcStartActivity(java.lang.String key,
                             java.lang.String user)

rpcGetUsersForActivity

public java.util.List rpcGetUsersForActivity(java.lang.String key)

xmlRpcExecute

protected java.lang.Object xmlRpcExecute(java.lang.String method,
                                         java.util.Vector params)
Wrapper for calling the xml rpc methods and handles the exceptions properly.

Parameters:
method - the method Name
params - the method parameters
Returns:
the result of the remote method call

attachFile

protected void attachFile(java.io.File attachment,
                          java.lang.String comment)
Click the attach file link, attach a given file with a given comment and submit the attachment form.

Parameters:
attachment - the file attachment
comment - the comment for the attachment

attachFileWithName

protected void attachFileWithName(java.lang.String fileName,
                                  java.io.InputStream in,
                                  java.lang.String contentType,
                                  java.lang.String comment)
Click the attach file link, attach a given file with a given comment and submit the attachment form.

Parameters:
fileName - the filename to attach
in - the stream to read the file
contentType - the content type of the attachment
comment - a comment for this attachment

createMail

protected void createMail(java.io.File mail,
                          java.lang.String spaceKey)

setEmailMask

protected void setEmailMask(java.lang.String setting)

resetEmailMask

protected void resetEmailMask()

goToEditGeneralConfiguration

protected void goToEditGeneralConfiguration()

setAttachmentMaxUploadSize

protected void setAttachmentMaxUploadSize(long max)

setDraftSaveInterval

protected void setDraftSaveInterval(long seconds)

setHttpCompression

public void setHttpCompression(boolean compressHttp)
Set the Http Compression setting according to the given parameter. Current logged in user must have administrative permission.

Parameters:
compressHttp - true to turn (or leave) compression on.

search

protected void search(java.lang.String query)

getAppContext

protected java.lang.String getAppContext()

importMailAndAssertNoRunningTask

protected void importMailAndAssertNoRunningTask(java.lang.String filePath,
                                                java.lang.String spaceKey)
Creates mails in the specified space and then checks if it successfully moved to the No Long Running Task page. Mail import can be done with an Mbox file or single mail.

Parameters:
filePath - the file path to the mailbox
spaceKey - the space key to import into

importMail

protected void importMail(java.lang.String filePath,
                          java.lang.String spaceKey)
Creates mails in the specified space. Mail import can be done with an Mbox file or single mail. No explicit assertions are made by this method.

Parameters:
filePath - the file path to the mailbox
spaceKey - the space key to import into

pause

protected void pause(long milliseconds)
We use pause because mysql is not very good at distinguishing times that are close together. The result is unpredictable ordering of search results and intermittent failure of tests.

Parameters:
milliseconds - the time to pause

addSpaceLabel

protected void addSpaceLabel(java.lang.String labelName)

renamePage

protected void renamePage(java.lang.String spaceKey,
                          java.lang.String originalPageTitle,
                          java.lang.String newPageTitle)

emptyTrash

protected void emptyTrash()

viewSpaceAdvanced

protected void viewSpaceAdvanced()

grantAnonymousUseConfluencePermission

protected void grantAnonymousUseConfluencePermission()

revokeAnonymousUseConfluencePermission

protected void revokeAnonymousUseConfluencePermission()

showAllUsers

protected void showAllUsers()

addWatchPage

protected ViewContentBean addWatchPage()
                                throws java.lang.Exception
Throws:
java.lang.Exception

watchPage

protected ViewContentBean watchPage(java.lang.String spaceKey,
                                    java.lang.String pageTitle)

watchSpace

protected void watchSpace(java.lang.String spaceKey)

generateFile

protected java.io.File generateFile(java.lang.String filename,
                                    java.lang.String contents)

getCurrentMailQueueSize

protected int getCurrentMailQueueSize()

importGlobalBackup

protected void importGlobalBackup(java.lang.String importZipLocation,
                                  boolean waitForSuccess)
                           throws java.lang.InterruptedException

Perform a site import via the web ui. Logs in as admin first. After the import is performed, the admin user logs in again and the base url setting is restored.

If waiting for success, the method relies on being the only import process running at the time, since it waits for an ImportFinishedEvent.

Parameters:
importZipLocation - zip file location relative to classpath
waitForSuccess - synchronously wait for the export to complete
Throws:
java.lang.InterruptedException

importSpaceBackup

protected void importSpaceBackup(java.lang.String importZipLocation,
                                 boolean waitForSuccess)
                          throws java.lang.InterruptedException

Import an xml exported space from the classpath into Confluence via the web ui. Logs in as admin first.

If waiting for success, the method relies on being the only import process running at the time, since it waits for an ImportFinishedEvent.

Parameters:
importZipLocation - zip file location relative to classpath
waitForSuccess - synchronously wait for the export to complete
Throws:
java.lang.InterruptedException

restoreBaseUrl

protected final void restoreBaseUrl()
Sets Confluence's baseUrl to whatever it is in the test properties.


stripContext

public java.lang.String stripContext(java.lang.String context,
                                     java.lang.String url)
This function takes a URL like /context/foo/bar/baz..., and the context, and returns foo/bar/baz

Parameters:
context - the context
url - the url
Returns:
the stripped context

downloadToTempFile

protected java.io.File downloadToTempFile(java.lang.String url)
                                   throws java.io.IOException
Throws:
java.io.IOException

rpclogCommandOutput

protected void rpclogCommandOutput(java.lang.String commandString)
                            throws java.lang.InterruptedException,
                                   org.apache.xmlrpc.XmlRpcException
Throws:
java.lang.InterruptedException
org.apache.xmlrpc.XmlRpcException

setViewPermissionsForUsers

protected void setViewPermissionsForUsers(java.lang.String spaceKey,
                                          java.lang.String pageTitle,
                                          java.lang.String users)

Edit the permissions of the specified page as the current user.

One doesn't need to navigate to the page before calling this method.

Parameters:
spaceKey - the space the page belongs to
pageTitle - the title of the page
users - the users to restrict view permissions to as a comma separated list of usernames.

setViewPermissionsForGroups

protected void setViewPermissionsForGroups(java.lang.String spaceKey,
                                           java.lang.String pageTitle,
                                           java.lang.String groups)

Edit the permissions of the specified page as the current user.

One doesn't need to navigate to the page before calling this method.

Parameters:
spaceKey - the space the page belongs to
pageTitle - the title of the page
groups - the groups to restrict view permissions to as a comma separated list of group names.

setEditPermissionsForUsers

protected void setEditPermissionsForUsers(java.lang.String spaceKey,
                                          java.lang.String pageTitle,
                                          java.lang.String users)

Edit the permissions of the specified page as the current user.

One doesn't need to navigate to the page before calling this method.

Parameters:
spaceKey - the space the page belongs to
pageTitle - the title of the page
users - the users to restrict edit permissions to as a comma separated list of usernames.

setEditPermissionsForGroups

protected void setEditPermissionsForGroups(java.lang.String spaceKey,
                                           java.lang.String pageTitle,
                                           java.lang.String groups)

Edit the permissions of the specified page as the current user.

One doesn't need to navigate to the page before calling this method.

Parameters:
spaceKey - the space the page belongs to
pageTitle - the title of the page
groups - the groups to restrict edit permissions to as a comma separated list of group names.

removePageOrBlogById

protected void removePageOrBlogById(long id)

getBaseUrl

public java.lang.String getBaseUrl()

waitForLongRunningTaskToComplete

protected boolean waitForLongRunningTaskToComplete(int timeout,
                                                   java.lang.String errorText)
Wait for the current long running task to complete. This is indicated either by completion getting to 100% or a particular string which indicates an error appearing in the response.

Parameters:
timeout - fail after this many milliseconds if the long running task has not completed.
errorText - the appearance of this string in the response indicates that the task has completed with an error.
Returns:
true if the task completed successfully, otherwise false.

getEventLatch

protected EDU.oswego.cs.dl.util.concurrent.Latch getEventLatch(java.lang.String token,
                                                               java.lang.Class eventClass,
                                                               int timeout)
Create a Latch object that will be released when the event has been fired OR when the timeout has elapsed.


addPageComment

@Deprecated
protected void addPageComment(java.lang.String comment)
Deprecated. Should use ViewContentBean.addComment() instead.


addComment

@Deprecated
protected void addComment(java.lang.String spaceKey,
                                     java.lang.String pageTitle,
                                     java.lang.String comment)
Deprecated. Should use ViewContentBean.addComment() instead.


setPageLabels

protected void setPageLabels(java.lang.String spaceKey,
                             java.lang.String pageTitle,
                             java.lang.String labels)
Add the specified label to the page via the pages edit view.

Parameters:
spaceKey - the space key
pageTitle - the page title
labels - the labels

editPageLabels

protected void editPageLabels(java.lang.String labels)

editPageContent

protected void editPageContent(java.lang.String content)

editPageContent

protected void editPageContent(java.lang.String content,
                               java.lang.String comment)

editBlogPostContent

protected void editBlogPostContent(java.lang.String content)

editBlogLabels

protected void editBlogLabels(java.lang.String labels)

editPageWithContent

protected void editPageWithContent(java.lang.String spaceKey,
                                   java.lang.String title,
                                   java.lang.String content)

editPageWithContent

protected void editPageWithContent(java.lang.String spaceKey,
                                   java.lang.String title,
                                   java.lang.String content,
                                   java.lang.String comment)

gotoPageWithError

protected void gotoPageWithError(java.lang.String url)

setAllowCamelCase

protected void setAllowCamelCase(boolean allow)

assertImageValid

public void assertImageValid(java.lang.String imgSrc,
                             java.lang.String imgAlt)
We override the default implementation of this method as it has a bug when dealing with relative URLs Basically if we are on the page /display/blah.action and there is an image src with /images/blah.gif, the default implementation will verify that the img src matches but will attempt to request the image at the URL /display/images/blah.gif. The bug is in the method createUrl(java.lang.String, java.net.URL)

Overrides:
assertImageValid in class net.sourceforge.jwebunit.junit.WebTestCase

assertImagePresent

protected void assertImagePresent(java.lang.String imageName)
Provide our own implementation of WebTestCase.assertImagePresent(String, String) that asserts the image name with a contains check rather than equals.


getUserGroups

protected java.util.Collection getUserGroups(java.lang.String username)
                                      throws org.apache.xmlrpc.XmlRpcException,
                                             java.io.IOException
Return the groups to which the user belongs.

Parameters:
username - user's login name
Returns:
a collection of group names as Strings.
Throws:
org.apache.xmlrpc.XmlRpcException
java.io.IOException

isClustered

protected boolean isClustered()
Returns:
true if testing against a clustered intance of Confluence, false otherwise.

getFriendlyRelativeDate

protected java.lang.String getFriendlyRelativeDate(java.util.Date now,
                                                   java.util.Date date,
                                                   TimeZone timeZone)
Use the FriendlyDateFormatter to format the date relative to the "now" time. Note that the output format varies greatly even from second to second -- see FriendlyDateFormatter.

Parameters:
now - the date which the relative time is calculated in relation to
date - the date of some event which is to be formatted
timeZone - the current time zone
Returns:
a formatted relative date-time
See Also:
FriendlyDateFormatter

forceViewGlobalAdmin

protected void forceViewGlobalAdmin()

createTestMailServer

protected void createTestMailServer()
                             throws java.lang.Exception
Throws:
java.lang.Exception

stopTestMailServer

protected void stopTestMailServer()

rpcFlushMailQueue

protected void rpcFlushMailQueue()

assertNoMailReceived

protected void assertNoMailReceived()
                             throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

assertMailReceived

protected void assertMailReceived()
                           throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

rpcClearIndex

protected void rpcClearIndex()

rpcClearQueue

protected void rpcClearQueue(java.lang.String token,
                             java.lang.String queueName)

rebuildIndex

protected void rebuildIndex()
                     throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

editSpaceDescription

protected void editSpaceDescription(User user,
                                    java.lang.String spaceKey,
                                    java.lang.String newDescription)


Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.