Why viewModel returns null value while observeForever used in Unit test

前端 未结 0 942
慢半拍i
慢半拍i 2020-12-07 17:04

I have written a test method like this:

@Test
    fun testGetDoctorsFromServer() {
        val doctorViewModel = DoctorViewModel(ApplicationProvider.getApplic         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题