Skip to content

Commit 82209f5

Browse files
committed
Analysis: Suppress cast can never succeed test cast warnings
Warning Message: "This cast can never succeed" These type warnings are suppressed, that is, instead of being resolved, since a resolution would require a proper investigation. As such, it might be best to ignore those as out of scope, for now, and so as to not introduce any breaking changes to these tests overall.
1 parent 1b0a22b commit 82209f5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

WordPress/src/test/java/org/wordpress/android/ui/sitecreation/theme/FetchHomePageLayoutsUseCaseTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class FetchHomePageLayoutsUseCaseTest {
5454
}
5555

5656
@Test
57+
@Suppress("CAST_NEVER_SUCCEEDS")
5758
fun `when beta site designs are enabled the stable and beta groups are passed to the call`() = test {
5859
whenever(dispatcher.dispatch(any())).then { useCase.onStarterDesignsFetched(event) }
5960
whenever(betaSiteDesigns.isEnabled()).thenReturn(true)
@@ -68,6 +69,7 @@ class FetchHomePageLayoutsUseCaseTest {
6869
}
6970

7071
@Test
72+
@Suppress("CAST_NEVER_SUCCEEDS")
7173
fun `when beta site designs are disabled no groups are passed to the call`() = test {
7274
whenever(dispatcher.dispatch(any())).then { useCase.onStarterDesignsFetched(event) }
7375
whenever(betaSiteDesigns.isEnabled()).thenReturn(false)

0 commit comments

Comments
 (0)