Slide 76
Slide 76 text
class SqliteSourceDaoTest {
@Test
fun insertAndGet(){
dao = SqliteSourceDao()
val source = Source.create(…)
val inserted = dao.insert(source)
.toBlocking().first()
assertEquals(1, insertRes)
val queried = dao.getAllSources().toBlocking()
assertEquals(queried, listOf(source))
}
}