Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/databinding #9

Merged
merged 7 commits into from
Jun 7, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
modified unit tests
  • Loading branch information
skydoves committed Jun 7, 2019
commit 6a1b1af37938480d420fdb50708bd8787eec42c5
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class MainActivityViewModelTest {
val call = ApiUtil.successCall(mockResponse)
whenever(discoverService.fetchDiscoverMovie(1)).thenReturn(call)

val data = viewModel.getMovieListObservable()
val data = viewModel.movieListLiveData
val observer = mock<Observer<Resource<List<Movie>>>>()
data.observeForever(observer)

Expand All @@ -109,7 +109,7 @@ class MainActivityViewModelTest {
val loadFromDB = MutableLiveData<List<Tv>>()
whenever(tvDao.getTvList(1)).thenReturn(loadFromDB)

val data = viewModel.getTvListObservable()
val data = viewModel.tvListLiveData
val observer = mock<Observer<Resource<List<Tv>>>>()
data.observeForever(observer)

Expand All @@ -130,7 +130,7 @@ class MainActivityViewModelTest {
val loadFromDB = MutableLiveData<List<Person>>()
whenever(peopleDao.getPeople(1)).thenReturn(loadFromDB)

val data = viewModel.getPeopleObservable()
val data = viewModel.peopleLiveData
val observer = mock<Observer<Resource<List<Person>>>>()
data.observeForever(observer)

Expand Down