Skip to content

Instantly share code, notes, and snippets.

@hitherejoe hitherejoe/get.kt Secret
Created Oct 18, 2017

Embed
What would you like to do?
@Test
fun getBufferoosRetrievesData() {
val cachedBufferoos = BufferooFactory.makeCachedBufferooList(5)
cachedBufferoos.forEach {
bufferoosDatabase.cachedBufferooDao().insertBufferoo(it) }
val retrievedBufferoos = bufferoosDatabase.cachedBufferooDao().getBufferoos()
assert(retrievedBufferoos == cachedBufferoos.sortedWith(compareBy({ it.id }, { it.id })))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.