Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val feed = Feed()
- feed.title = "About Canada"
- val response = Response.success(feed)
- Mockito.`when`(fetchFeed.fetchFeed()).thenReturn(response)
- presenterImpl = FeedPresenterImpl(TestContextProvider(), feedView)
- presenterImpl.fetchData()
- fetchFeed.fetchFeed()
- Mockito.verify(feedView).updateList(Result.Success(feed))
Add Comment
Please, Sign In to add comment