Skip to content

test(navigation-sample): add Kotlin and Java layout delegate unit tests - #35

Draft
dkhawk wants to merge 1 commit into
test/navigation-samples-suitefrom
test/nav-sample-layout-delegates
Draft

dkhawk wants to merge 1 commit into
test/navigation-samples-suitefrom
test/nav-sample-layout-delegates

Conversation

@dkhawk

@dkhawk dkhawk commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Stacked on #32 (which builds on #33).

Adds 9 Robolectric state-machine tests across 2 suites + shared fixtures for the Kotlin and Java NavigationLayoutDelegate implementations:

  • FakeLayoutDelegateFixtures.kt: shared fake NavigationUiParent, NavigationUiButton, NavigationReadyUiState, and ActiveGuidanceUiState.
  • LayoutDelegatesTest.kt (5 Kotlin Power-Assert tests): StandardUiElementsLayoutDelegateKt, AllUiElementsLayoutDelegateKt, BottomSheetLayoutDelegateKt, and BottomSheetLandscapeLayoutDelegateKt.
  • LayoutDelegatesJavaTest.java (4 Java Google Truth tests): StandardUiElementsLayoutDelegate, AllUiElementsLayoutDelegate, BottomSheetLayoutDelegate, and BottomSheetLandscapeLayoutDelegate.

@dkhawk
dkhawk force-pushed the test/nav-sample-layout-delegates branch from 68cca56 to a1dd597 Compare November 30, 2026 19:28
@dkhawk
dkhawk force-pushed the test/navigation-samples-suite branch from 9488175 to 260ad32 Compare November 30, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant