TestUtils

public class TestUtils extends Object

Utility methods for integration tests for the indexing SDK.

Public Constructor Summary

Public Method Summary

void
waitUntilDeleted(String itemId, Duration timeout, Duration pollInterval)
Waits for the item with the given ID to be deleted.
void
waitUntilDeleted(String itemId)
Waits for the item with the given ID to be deleted.
void
waitUntilEqual(String itemId, Item expectedItem)
Waits until the item with the given ID is equal to the expected item.

Inherited Method Summary

Public Constructors

public TestUtils (CloudSearchService service)

Parameters
service

Public Methods

public void waitUntilDeleted (String itemId, Duration timeout, Duration pollInterval)

Waits for the item with the given ID to be deleted.

Parameters
itemId
timeout
pollInterval
Throws
ConditionTimeoutException if the item is not deleted before the timeout

public void waitUntilDeleted (String itemId)

Waits for the item with the given ID to be deleted.

Parameters
itemId
Throws
ConditionTimeoutException if the item is not deleted before the timeout

public void waitUntilEqual (String itemId, Item expectedItem)

Waits until the item with the given ID is equal to the expected item.

Parameters
itemId
expectedItem
Throws
ConditionTimeoutException - if the items are not equal before the timeout expires.