Skip to content

Instantly share code, notes, and snippets.

@pranay1494
Created May 2, 2020 17:18
Show Gist options
  • Save pranay1494/41a06d52cb0543211bafd172572bdf05 to your computer and use it in GitHub Desktop.
Save pranay1494/41a06d52cb0543211bafd172572bdf05 to your computer and use it in GitHub Desktop.
@Before
fun setUp(){
MockitoAnnotations.initMocks(this)
viewModel = UserViewModel(repository,dispatcherRule.testDispatcher)
viewModel.getData().observeForever(observer)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment