Created
December 13, 2020 20:35
-
-
Save jobinlawrance/74d76d2892b4e508b0fac1f6a7a1f35a to your computer and use it in GitHub Desktop.
This file contains 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
... | |
@Before | |
override fun setup() { | |
val realInteractor = get<HomeInteractor>() | |
mockedInteractor = Mockito.spy(realInteractor) | |
mockedModule = module { | |
single(override = true) { mockedInteractor } | |
} | |
loadKoinModules(mockModule) | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment