File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
sentry-android/src/test/java/io/sentry/android Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import kotlin.test.BeforeTest
1010import kotlin.test.Test
1111import kotlin.test.assertFalse
1212import kotlin.test.assertTrue
13+ import kotlin.test.assertFailsWith
1314
1415@RunWith(AndroidJUnit4 ::class )
1516class SentryInitProviderTest {
@@ -27,8 +28,8 @@ class SentryInitProviderTest {
2728 fun `when missing applicationId, SentryInitProvider throws` () {
2829 val providerInfo = ProviderInfo ()
2930
30- providerInfo.authority = " io.sentry.android. SentryInitProvider"
31- sentryInitProvider.attachInfo(context, providerInfo)
31+ providerInfo.authority = " io.sentry.SentryInitProvider"
32+ assertFailsWith< IllegalStateException > { sentryInitProvider.attachInfo(context, providerInfo) }
3233 }
3334
3435 @Test
You can’t perform that action at this time.
0 commit comments