fstn
12/02/2017, 7:30 AMval mockContextManager = Mockito.mock(ContextManager::class.java)
Mockito.`when`(mockContextManager.get(1)).thenReturn(2)
where get is a suspend functionelizarov
12/02/2017, 7:33 AMMockito.mock
invocation into runBlocking { ... }
fstn
12/02/2017, 7:42 AMrunBlocking { Mockito.`when`(mockContextManager.get("1") ).thenReturn(mockResultForUser1)
}
fstn
12/02/2017, 8:30 AM