Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import com.bumptech.glide.request.RequestOptions
import com.codingwithmitch.espressouitestexamples.R
import com.codingwithmitch.espressouitestexamples.data.Movie
import com.codingwithmitch.espressouitestexamples.data.source.MoviesRemoteDataSource
import com.codingwithmitch.espressouitestexamples.data.source.MoviesDataSource
import com.codingwithmitch.espressouitestexamples.factory.MovieFragmentFactory
import io.mockk.every
import io.mockk.mockk
Expand Down Expand Up @@ -39,7 +39,7 @@ class MovieDetailFragmentTest{
arrayListOf("Dwayne Johnson", "Seann William Scott", "Rosario Dawson", "Christopher Walken")
)

val moviesDataSource = mockk<MoviesRemoteDataSource>()
val moviesDataSource = mockk<MoviesDataSource>()
every {
moviesDataSource.getMovie(movieId)
} returns movie
Expand Down Expand Up @@ -89,7 +89,7 @@ class MovieDetailFragmentTest{
// I don't think it matters in this case.
// Probably for a larger repository and more complex app I would stub the repository. Then
// you could test errors, various success cases, etc...
val moviesDataSource = mockk<MoviesRemoteDataSource>()
val moviesDataSource = mockk<MoviesDataSource>()
every {
moviesDataSource.getMovie(movieId)
} returns movie
Expand Down