public class DbCachingTestHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DbCachingTestHelper.SyncInfo
Information about the synchronisation.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_MAX_SYNC_WAIT_TIME_MS |
| 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,
long maxWaitTimeMs)
Synchronises the directory and waits until the synchronisation has finished.
|
DbCachingTestHelper.SyncInfo |
synchroniseDirectory(String directoryName,
long maxWaitTimeMs,
String shortDescription)
Synchronises the directory and waits until the synchronisation has finished.
|
static DbCachingTestHelper.SyncInfo |
synchroniseDirectory(String baseUrl,
String directoryName,
long maxWaitTimeMs)
Synchronises the directory and waits until the synchronisation has finished.
|
static DbCachingTestHelper.SyncInfo |
synchroniseDirectory(String baseUrl,
String directoryName,
long maxWaitTimeMs,
String shortDescription)
Synchronises the directory and waits until the synchronisation has finished.
|
public static final long DEFAULT_MAX_SYNC_WAIT_TIME_MS
public DbCachingTestHelper(String baseUrl)
public static DbCachingTestHelper.SyncInfo synchroniseDirectory(String baseUrl, String directoryName, long maxWaitTimeMs)
baseUrl - Crowd base URLdirectoryName - name of the directory to synchronisemaxWaitTimeMs - maximum time in milliseconds to wait for the synchronisation to finishRuntimeException - if the synchronisation doesn't finish within DEFAULT_MAX_SYNC_WAIT_TIME_MS milliseconds.public static DbCachingTestHelper.SyncInfo synchroniseDirectory(String baseUrl, String directoryName, long maxWaitTimeMs, String shortDescription)
baseUrl - Crowd base URLdirectoryName - name of the directory to synchronisemaxWaitTimeMs - maximum time in milliseconds to wait for the synchronisation to finishshortDescription - description about the synchronisation taskRuntimeException - if the synchronisation doesn't finish within DEFAULT_MAX_SYNC_WAIT_TIME_MS milliseconds.public DbCachingTestHelper.SyncInfo synchroniseDirectory(String directoryName, long maxWaitTimeMs)
directoryName - name of the directory to synchronisemaxWaitTimeMs - maximum time in milliseconds to wait for the synchronisation to finishRuntimeException - if the synchronisation doesn't finish within maxWaitTimeMs milliseconds.public DbCachingTestHelper.SyncInfo synchroniseDirectory(String directoryName, long maxWaitTimeMs, String shortDescription)
directoryName - name of the directory to synchronisemaxWaitTimeMs - maximum time in milliseconds to wait for the synchronisation to finishshortDescription - description about the synchronisation taskRuntimeException - if the synchronisation doesn't finish within maxWaitTimeMs milliseconds.public boolean isSynchronising(long directoryId)
directoryId - public boolean isSynchronising(String directoryName)
directoryName - Copyright © 2020 Atlassian. All rights reserved.