public class DbCachingTestHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DbCachingTestHelper.SyncInfo
Information about the synchronisation.
|
| Constructor and Description |
|---|
DbCachingTestHelper(String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSynchronising(long directoryId)
Returns true if the directory is currently being synchronised.
|
boolean |
isSynchronising(String directoryName)
Returns true if the directory is currently being synchronised.
|
DbCachingTestHelper.SyncInfo |
synchroniseDirectory(String directoryName,
Duration maxWaitTime)
Synchronises the directory and waits until the synchronisation has finished.
|
DbCachingTestHelper.SyncInfo |
synchroniseDirectory(String directoryName,
Duration maxWaitTime,
String shortDescription)
Synchronises the directory and waits until the synchronisation has finished.
|
static DbCachingTestHelper.SyncInfo |
synchroniseDirectory(String baseUrl,
String directoryName,
Duration maxWaitTime)
Synchronises the directory and waits until the synchronisation has finished.
|
static DbCachingTestHelper.SyncInfo |
synchroniseDirectory(String baseUrl,
String directoryName,
Duration maxWaitTime,
String shortDescription)
Synchronises the directory and waits until the synchronisation has finished.
|
DetailedDirectorySynchronizationData |
waitTillSyncFinished(String directoryName,
Duration maxWaitTime)
Waits until the synchronisation finishes.
|
public DbCachingTestHelper(String baseUrl)
public static DbCachingTestHelper.SyncInfo synchroniseDirectory(String baseUrl, String directoryName, Duration maxWaitTime)
baseUrl - Crowd base URLdirectoryName - name of the directory to synchronisemaxWaitTime - maximum time to wait for the synchronisation to finishAssertionError - if the synchronisation doesn't finish within maxWaitTime.public static DbCachingTestHelper.SyncInfo synchroniseDirectory(String baseUrl, String directoryName, Duration maxWaitTime, String shortDescription)
baseUrl - Crowd base URLdirectoryName - name of the directory to synchronisemaxWaitTime - maximum time to wait for the synchronisation to finishshortDescription - description about the synchronisation taskAssertionError - if the synchronisation doesn't finish within maxWaitTime.public DbCachingTestHelper.SyncInfo synchroniseDirectory(String directoryName, Duration maxWaitTime)
directoryName - name of the directory to synchronisemaxWaitTime - maximum time to wait for the synchronisation to finishAssertionError - if the synchronisation doesn't finish within maxWaitTime.public DbCachingTestHelper.SyncInfo synchroniseDirectory(String directoryName, Duration maxWaitTime, String shortDescription)
directoryName - name of the directory to synchronisemaxWaitTime - maximum time to wait for the synchronisation to finishshortDescription - description about the synchronisation taskAssertionError - if the synchronisation doesn't finish within maxWaitTime.public DetailedDirectorySynchronizationData waitTillSyncFinished(String directoryName, Duration maxWaitTime)
maxWaitTime - maximum time to wait for the synchronisation to finishAssertionError - if the synchronisation doesn't finish within maxWaitTime.public boolean isSynchronising(long directoryId)
directoryId - public boolean isSynchronising(String directoryName)
directoryName - Copyright © 2024 Atlassian. All rights reserved.