Colton Idle
03/18/2020, 3:55 PMwasyl
03/18/2020, 4:09 PMIn that case though... I don’t think I would need Dagger at all?Everything you can do with Dagger, you can also do without it. Dagger is supposed to be convenient, but the benefits are more pronounced in bigger apps. Generally to use MockWebServer, you need to be hitting its endpoint and not your production one, which means you need to pass a different base URL to your repository class (or wherever you make the requests). With Dagger it’s convenient to provide web server URL and change it for tests. If you can substitute the URL in tests without Dagger then you can start with that
wasyl
03/18/2020, 4:14 PMColton Idle
03/18/2020, 4:20 PMwasyl
03/18/2020, 4:24 PMColton Idle
03/18/2020, 4:25 PMwasyl
03/18/2020, 4:30 PMtrevjones
03/18/2020, 6:25 PMgildor
03/20/2020, 12:06 PMColton Idle
03/20/2020, 1:41 PMgildor
03/20/2020, 4:02 PMColton Idle
03/22/2020, 2:29 AM