File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
sentry-android-replay/src/test/java/io/sentry/android/replay/viewhierarchy Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import io.sentry.android.replay.viewhierarchy.ViewHierarchyNode.GenericViewHiera
4343import io.sentry.android.replay.viewhierarchy.ViewHierarchyNode.ImageViewHierarchyNode
4444import io.sentry.android.replay.viewhierarchy.ViewHierarchyNode.TextViewHierarchyNode
4545import java.io.File
46+ import java.lang.reflect.InvocationTargetException
4647import kotlin.test.Test
4748import kotlin.test.assertEquals
4849import kotlin.test.assertFalse
@@ -174,9 +175,9 @@ class ComposeMaskingOptionsTest {
174175 @Test
175176 fun `when retrieving the semantics fails, an error is thrown` () {
176177 val node = mock<LayoutNode >()
177- whenever(node.collapsedSemantics ).thenThrow(RuntimeException (" Compose Runtime Error" ))
178+ whenever(node.semanticsConfiguration ).thenThrow(RuntimeException (" Compose Runtime Error" ))
178179
179- assertThrows(RuntimeException ::class .java) {
180+ assertThrows(InvocationTargetException ::class .java) {
180181 ComposeViewHierarchyNode .retrieveSemanticsConfiguration(node)
181182 }
182183 }
You can’t perform that action at this time.
0 commit comments