Package com.tomtom.ivi.platform.framework.api.testing.ipc.iviservice.datasource
API of TomTom Digital Cockpit's IPC framework specific to sharing data sources for testing purpose.
Types
Link copied to clipboard
abstract class AbstractTestIviDataSource<E : Any, Q : Any>(val jumpingSupported: Boolean = true, val keyReuseSupported: Boolean = true) : IviDataSource<E, Q>
Content copied to clipboard
Base class for implementing an IviDataSource for testing purpose.
Link copied to clipboard
class SimpleTestIviDataSource<E : Any, Q : Any>( dataByQuery: Map<Q, List<E>>, jumpingSupported: Boolean = true, keyReuseSupported: Boolean = true) : AbstractTestIviDataSource<E, Q>
Content copied to clipboard
An IviDataSource, for testing purpose, that creates IviPagingSources that allows loading of a predefined data list. The IviPagingSource allows loading of data from an dataByQuery entry. The data is loaded from the entry with a key that equals the query
argument given to createPagingSource or createPagingSourceFlow.
Link copied to clipboard
class SimpleTestIviPagingSource<E : Any>(data: List<E>) : IviPagingSourceBase<E>
Content copied to clipboard
An IviPagingSource, for testing purpose.
Functions
Link copied to clipboard
fun <E : Any, Q : Any> assertIviDataSourceEquals( expectedData: List<E>, dataSource: IviDataSource<E, Q>, query: Q, message: String? = null)
Content copied to clipboard
Assert that dataSource contains expectedData for a given query, with an optional message.
Link copied to clipboard
fun <E : Any> assertIviPagingSourceEquals( expectedData: List<E>, pagingSource: IviPagingSource<E>, message: String? = null)
Content copied to clipboard
Assert that pagingSource contains expectedData, with an optional message.