IMPORTANT: The file content has been truncated. Status: Showing lines 70-100 of 211 total lines. Action: To read more of the file, you can use the 'start_line' and 'end_line' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use start_line: 101. --- FILE CONTENT (truncated) --- override fun initDependencies() { super.initDependencies() every { preferences.isCrashReportingEnabledSync() } returns true } override fun doSentryInit(dsn: String) { doSentryInitCalled = true } } @RunWith(RobolectricTestRunner::class) class ServiceBookApplicationTest { @Test @Config(application = SentryEnabledApp::class, sdk = [34]) fun `initSentry calls doSentryInit when enabled and dsn present`() { val app = ApplicationProvider.getApplicationContext() assertThat(app.doSentryInitCalled).isTrue() } @Test @Config(application = SentryDisabledApp::class, sdk = [34]) fun `initSentry does not init when crash reporting disabled`() { val app = ApplicationProvider.getApplicationContext() assertThat(app.doSentryInitCalled).isFalse() } @Test @Config(application = SentryEmptyDsnApp::class, sdk = [34]) fun `initSentry does not init when dsn is empty`() { val app = ApplicationProvider.getApplicationContext() assertThat(app.doSentryInitCalled).isFalse()