android10 / android10/Android-CleanArchitecture-Kotlin

Navigator tests pass even if the destination Activity changes

Open
#38 2 comments 0 reactions 0 assignees View on GitHub
discussion question
Dominant language
Kotlin
Stars
4.8k
Forks
929
PR merge metrics
No merged PRs in 30d

Description

Regarding `NavigatorTest`:

```kotlin
@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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.