java.lang.Object
org.junit.rules.TestWatcher
com.atlassian.crowd.acceptance.tests.synchronisation.remote.CrowdInstanceHelper
All Implemented Interfaces:
org.junit.rules.TestRule

public class CrowdInstanceHelper extends org.junit.rules.TestWatcher
  • Constructor Details

    • CrowdInstanceHelper

      public CrowdInstanceHelper(String hostPath, String crowdAppPassword)
  • Method Details

    • starting

      protected void starting(org.junit.runner.Description testDescription)
      Overrides:
      starting in class org.junit.rules.TestWatcher
    • restoreCrowdFromXML

      public void restoreCrowdFromXML(String xmlFile)
    • synchroniseDirectory

      public SynchronisationMode synchroniseDirectory(String directoryName, Duration maxWaitTime)
    • synchroniseDirectory

      public SynchronisationMode synchroniseDirectory(String directoryName)
    • synchroniseDirectoryGetInfo

      public DbCachingTestHelper.SyncInfo synchroniseDirectoryGetInfo(String directoryName)
    • synchroniseDirectoryGetInfo

      public DbCachingTestHelper.SyncInfo synchroniseDirectoryGetInfo(String directoryName, Duration maxWaitTime)
    • incrementalSync

      public void incrementalSync(long directoryId, boolean enable)
    • getGroupMemberGroupNames

      public List<String> getGroupMemberGroupNames(String groupName, long directoryId)
    • getUsernamesInGroup

      public List<String> getUsernamesInGroup(String groupName, long directoryId)
    • getAdminClient

      public RestAdminClient getAdminClient()
    • getTestkitClient

      public TestkitClient getTestkitClient()
    • getCrowdClient

      public CrowdClient getCrowdClient()
    • getApplicationsAdminClient

      public ApplicationsRestAdminClient getApplicationsAdminClient()
    • getHostUrl

      public String getHostUrl()
    • getUsernamesInDirectory

      public List<String> getUsernamesInDirectory(long directoryId)
    • getUserGroupsNames

      public List<String> getUserGroupsNames(String username, long directoryId)