Package com.tomtom.ivi.platform.tools.api.testing.functional.util
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <R> waitForAndCheckIviServiceAsyncFunResult( timeoutMs: Long = DEFAULT_WAIT_LIVE_DATA_TIMEOUT_MS, expectedResultType: IviServiceFunResult.ResultType = IviServiceFunResult.ResultType.SUCCESSFUL, function: ((IviServiceFunResult<R?>?) -> Unit) -> Unit): IviServiceFunResult<R?>
Content copied to clipboard
Utility function to wait for an IVI service async function result and check the result.
Link copied to clipboard
Link copied to clipboard
fun <R> waitForIviServiceAsyncFunResult(timeoutMs: Long = DEFAULT_WAIT_LIVE_DATA_TIMEOUT_MS, function: ((IviServiceFunResult<R?>?) -> Unit) -> Unit): IviServiceFunResult<R?>
Content copied to clipboard
Utility function to wait for an IVI service async function result.
Link copied to clipboard
fun waitForNonUi( timeoutMs: Long, intervalMs: Long = DEFAULT_INTERVAL_MS, predicate: () -> Boolean): Boolean
Content copied to clipboard
Utility function to wait for a predicate to return true
. The predicate is invoked periodically with intervalMs as interval until the timeoutMs timeout is reached.