This is a movies sample app in Kotlin, which is part of a serie of blog posts I have written about architecting android application using different approaches.
@Test fun `should forward user to movies screen`() {
whenever(authenticator.userLoggedIn()).thenReturn(true)
navigator.showMain(activityContext())
verify(authenticator).userLoggedIn()
RouteActivity::class shouldNavigateTo MoviesActivity::class
}
if you switch MoviesActivity with LoginActivity the test still passes
Regarding
NavigatorTest
:if you switch
MoviesActivity
withLoginActivity
the test still passes