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

boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

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.