This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PhotosControllerTest : Spek({ | |
| describe("The PhotosController") { | |
| var mockPhotosApiService: PhotosApiService? = null | |
| var mockSchedulerForwarder: SchedulerForwarder? = null | |
| var uut: PhotosController? = null | |
| beforeEachTest { | |
| // uut and supporting classes setup and mocked here | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PhotosController @Inject constructor( | |
| private val compositeDisposable: CompositeDisposable, | |
| private val photosApiService: PhotosApiService, | |
| private val schedulerForwarder: SchedulerForwarder | |
| ) : PhotoListItemViewMvc.Listener { | |
| @VisibleForTesting | |
| var photosAdapter: PhotosAdapter? = null | |
| fun getPhotos() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Inspired, in part, by: | |
| # - https://olv.to/idea-folder | |
| # - https://olv.to/idea-ignore | |
| # Discarding | |
| *.iml | |
| *.xml | |
| caches | |
| libraries |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <androidx.fragment.app.FragmentContainerView | |
| android:id="@+id/nav_host_fragment" | |
| android:name="package.name.to.your.CustomNavHostFragment" | |
| ... | |
| app:defaultNavHost="true" | |
| app:navGraph="@navigation/nav_graph" /> |