File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
sentry/src/test/java/io/sentry Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11package io.sentry
22
33import io.sentry.SentryOptions.RequestSize
4+ import io.sentry.logger.ILoggerBatchProcessorFactory
45import io.sentry.util.StringUtils
56import java.io.File
67import java.net.Proxy
@@ -12,6 +13,7 @@ import kotlin.test.assertIs
1213import kotlin.test.assertNotEquals
1314import kotlin.test.assertNotNull
1415import kotlin.test.assertNull
16+ import kotlin.test.assertSame
1517import kotlin.test.assertTrue
1618import org.mockito.kotlin.eq
1719import org.mockito.kotlin.mock
@@ -908,4 +910,12 @@ class SentryOptionsTest {
908910 options.maxFeatureFlags = 50
909911 assertEquals(50 , options.maxFeatureFlags)
910912 }
913+
914+ @Test
915+ fun `loggerBatchFactory can be changed` () {
916+ val mock = mock<ILoggerBatchProcessorFactory >()
917+ val options = SentryOptions ()
918+ options.logs.loggerBatchProcessorFactory = mock
919+ assertSame(mock, options.logs.loggerBatchProcessorFactory)
920+ }
911921}
You can’t perform that action at this time.
0 commit comments