From 1086d7b8298199220972ff792a754eea2a1e63c1 Mon Sep 17 00:00:00 2001 From: Rehan Date: Fri, 15 Sep 2023 19:07:02 +0500 Subject: [PATCH] fixed BaseLocalTest renaming --- .../io/customer/messaginginapp/InAppMessagesProviderTest.kt | 4 ++-- .../io/customer/messagingpush/ModuleMessagingConfigTest.kt | 4 ++-- .../io/customer/messagingpush/ModuleMessagingPushFCMTest.kt | 4 ++-- .../test/java/io/customer/sdk/api/HttpRetryPolicyTest.kt | 4 ++-- .../sdk/data/moshi/adapter/CustomAttributesAdapterTest.kt | 4 ++-- sdk/src/test/java/io/customer/sdk/data/store/ClientTest.kt | 4 ++-- .../test/java/io/customer/sdk/data/store/DeviceStoreTest.kt | 4 ++-- .../test/java/io/customer/sdk/data/store/FileTypeTest.kt | 4 ++-- sdk/src/test/java/io/customer/sdk/hook/HookManagerTest.kt | 4 ++-- .../test/java/io/customer/sdk/queue/QueueQueryRunnerTest.kt | 4 ++-- .../test/java/io/customer/sdk/queue/QueueRunRequestTest.kt | 4 ++-- sdk/src/test/java/io/customer/sdk/queue/QueueTest.kt | 4 ++-- sdk/src/test/java/io/customer/sdk/util/JsonAdapterTest.kt | 4 ++-- sdk/src/test/java/io/customer/sdk/util/LoggerTest.kt | 4 ++-- sdk/src/test/java/io/customer/sdk/util/SecondsTest.kt | 6 +++--- 15 files changed, 31 insertions(+), 31 deletions(-) diff --git a/messaginginapp/src/test/java/io/customer/messaginginapp/InAppMessagesProviderTest.kt b/messaginginapp/src/test/java/io/customer/messaginginapp/InAppMessagesProviderTest.kt index f8b363087..9b6e7f321 100644 --- a/messaginginapp/src/test/java/io/customer/messaginginapp/InAppMessagesProviderTest.kt +++ b/messaginginapp/src/test/java/io/customer/messaginginapp/InAppMessagesProviderTest.kt @@ -1,6 +1,6 @@ package io.customer.messaginginapp -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import io.customer.messaginginapp.gist.data.model.Message import io.customer.messaginginapp.provider.GistApi import io.customer.messaginginapp.provider.GistInAppMessagesProvider @@ -18,7 +18,7 @@ import org.mockito.kotlin.verify import org.mockito.kotlin.verifyNoInteractions import org.mockito.kotlin.whenever -internal class InAppMessagesProviderTest : BaseUnitTest() { +internal class InAppMessagesProviderTest : BaseLocalTest() { private lateinit var gistInAppMessagesProvider: GistInAppMessagesProvider private val gistApiProvider: GistApi = mock() diff --git a/messagingpush/src/test/java/io/customer/messagingpush/ModuleMessagingConfigTest.kt b/messagingpush/src/test/java/io/customer/messagingpush/ModuleMessagingConfigTest.kt index 22ba7d6e9..b934bdf4b 100644 --- a/messagingpush/src/test/java/io/customer/messagingpush/ModuleMessagingConfigTest.kt +++ b/messagingpush/src/test/java/io/customer/messagingpush/ModuleMessagingConfigTest.kt @@ -1,6 +1,6 @@ package io.customer.messagingpush -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import io.customer.messagingpush.data.communication.CustomerIOPushNotificationCallback import io.customer.messagingpush.di.moduleConfig import io.customer.sdk.CustomerIOConfig @@ -17,7 +17,7 @@ import org.mockito.kotlin.any import org.mockito.kotlin.mock import org.mockito.kotlin.whenever -internal class ModuleMessagingConfigTest : BaseUnitTest() { +internal class ModuleMessagingConfigTest : BaseLocalTest() { private val customerIOMock: CustomerIOInstance = mock() private val fcmTokenProviderMock: DeviceTokenProvider = mock() diff --git a/messagingpush/src/test/java/io/customer/messagingpush/ModuleMessagingPushFCMTest.kt b/messagingpush/src/test/java/io/customer/messagingpush/ModuleMessagingPushFCMTest.kt index d6f0e72f2..d29362c01 100644 --- a/messagingpush/src/test/java/io/customer/messagingpush/ModuleMessagingPushFCMTest.kt +++ b/messagingpush/src/test/java/io/customer/messagingpush/ModuleMessagingPushFCMTest.kt @@ -1,6 +1,6 @@ package io.customer.messagingpush -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import io.customer.sdk.CustomerIOInstance import io.customer.sdk.device.DeviceTokenProvider import io.customer.sdk.extensions.random @@ -13,7 +13,7 @@ import org.mockito.kotlin.never import org.mockito.kotlin.verify import org.mockito.kotlin.whenever -internal class ModuleMessagingPushFCMTest : BaseUnitTest() { +internal class ModuleMessagingPushFCMTest : BaseLocalTest() { private val customerIOMock: CustomerIOInstance = mock() private val fcmTokenProviderMock: DeviceTokenProvider = mock() diff --git a/sdk/src/test/java/io/customer/sdk/api/HttpRetryPolicyTest.kt b/sdk/src/test/java/io/customer/sdk/api/HttpRetryPolicyTest.kt index b3843b212..b1c8c0f7c 100644 --- a/sdk/src/test/java/io/customer/sdk/api/HttpRetryPolicyTest.kt +++ b/sdk/src/test/java/io/customer/sdk/api/HttpRetryPolicyTest.kt @@ -1,13 +1,13 @@ package io.customer.sdk.api -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import io.customer.sdk.util.Seconds import org.amshove.kluent.shouldBeEqualTo import org.amshove.kluent.shouldNotBeEqualTo import org.junit.Before import org.junit.Test -class HttpRetryPolicyTest : BaseUnitTest() { +class HttpRetryPolicyTest : BaseLocalTest() { private lateinit var retryPolicy: CustomerIOApiRetryPolicy diff --git a/sdk/src/test/java/io/customer/sdk/data/moshi/adapter/CustomAttributesAdapterTest.kt b/sdk/src/test/java/io/customer/sdk/data/moshi/adapter/CustomAttributesAdapterTest.kt index da7d08b0b..4a1d077a0 100644 --- a/sdk/src/test/java/io/customer/sdk/data/moshi/adapter/CustomAttributesAdapterTest.kt +++ b/sdk/src/test/java/io/customer/sdk/data/moshi/adapter/CustomAttributesAdapterTest.kt @@ -1,13 +1,13 @@ package io.customer.sdk.data.moshi.adapter -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import io.customer.sdk.utils.TestCustomAttributesDataSet import org.amshove.kluent.shouldBeEqualTo import org.amshove.kluent.shouldBeFalse import org.junit.Before import org.junit.Test -class CustomAttributesAdapterTest : BaseUnitTest() { +class CustomAttributesAdapterTest : BaseLocalTest() { private lateinit var adapter: CustomAttributesAdapter diff --git a/sdk/src/test/java/io/customer/sdk/data/store/ClientTest.kt b/sdk/src/test/java/io/customer/sdk/data/store/ClientTest.kt index c8d7f78ff..8da895cda 100644 --- a/sdk/src/test/java/io/customer/sdk/data/store/ClientTest.kt +++ b/sdk/src/test/java/io/customer/sdk/data/store/ClientTest.kt @@ -1,10 +1,10 @@ package io.customer.sdk.data.store -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import org.amshove.kluent.shouldBeEqualTo import org.junit.Test -class ClientTest : BaseUnitTest() { +class ClientTest : BaseLocalTest() { @Test fun initialize_givenAndroid_expectAndroidClient() { val androidClient = Client.Android(sdkVersion = "2.6.3") diff --git a/sdk/src/test/java/io/customer/sdk/data/store/DeviceStoreTest.kt b/sdk/src/test/java/io/customer/sdk/data/store/DeviceStoreTest.kt index 597e7a177..065632162 100644 --- a/sdk/src/test/java/io/customer/sdk/data/store/DeviceStoreTest.kt +++ b/sdk/src/test/java/io/customer/sdk/data/store/DeviceStoreTest.kt @@ -1,10 +1,10 @@ package io.customer.sdk.data.store -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import org.amshove.kluent.shouldBeEqualTo import org.junit.Test -class DeviceStoreTest : BaseUnitTest() { +class DeviceStoreTest : BaseLocalTest() { @Test fun verifyBuildAttributesInDevice() { diff --git a/sdk/src/test/java/io/customer/sdk/data/store/FileTypeTest.kt b/sdk/src/test/java/io/customer/sdk/data/store/FileTypeTest.kt index 7322d9bb6..5193a0460 100644 --- a/sdk/src/test/java/io/customer/sdk/data/store/FileTypeTest.kt +++ b/sdk/src/test/java/io/customer/sdk/data/store/FileTypeTest.kt @@ -1,12 +1,12 @@ package io.customer.sdk.data.store -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import io.customer.sdk.extensions.random import java.io.File import org.amshove.kluent.shouldBeEqualTo import org.junit.Test -class FileTypeTest : BaseUnitTest() { +class FileTypeTest : BaseLocalTest() { val testPath = "/path/to/file/io.customer" val existingPath = File(testPath) diff --git a/sdk/src/test/java/io/customer/sdk/hook/HookManagerTest.kt b/sdk/src/test/java/io/customer/sdk/hook/HookManagerTest.kt index 4a76a3df3..8bce6205a 100644 --- a/sdk/src/test/java/io/customer/sdk/hook/HookManagerTest.kt +++ b/sdk/src/test/java/io/customer/sdk/hook/HookManagerTest.kt @@ -1,6 +1,6 @@ package io.customer.sdk.hook -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import io.customer.sdk.extensions.random import io.customer.sdk.hooks.CioHooksManager import io.customer.sdk.hooks.HookModule @@ -11,7 +11,7 @@ import org.amshove.kluent.shouldBeEqualTo import org.junit.Before import org.junit.Test -internal class HookManagerTest : BaseUnitTest() { +internal class HookManagerTest : BaseLocalTest() { private lateinit var cioHooksManager: CioHooksManager diff --git a/sdk/src/test/java/io/customer/sdk/queue/QueueQueryRunnerTest.kt b/sdk/src/test/java/io/customer/sdk/queue/QueueQueryRunnerTest.kt index ec932842d..d670bef83 100644 --- a/sdk/src/test/java/io/customer/sdk/queue/QueueQueryRunnerTest.kt +++ b/sdk/src/test/java/io/customer/sdk/queue/QueueQueryRunnerTest.kt @@ -1,6 +1,6 @@ package io.customer.sdk.queue -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import io.customer.sdk.extensions.random import io.customer.sdk.queue.type.QueueTaskMetadata import org.amshove.kluent.shouldBeEqualTo @@ -9,7 +9,7 @@ import org.amshove.kluent.shouldNotBeEqualTo import org.junit.Before import org.junit.Test -class QueueQueryRunnerTest : BaseUnitTest() { +class QueueQueryRunnerTest : BaseLocalTest() { private lateinit var queryRunner: QueueQueryRunnerImpl diff --git a/sdk/src/test/java/io/customer/sdk/queue/QueueRunRequestTest.kt b/sdk/src/test/java/io/customer/sdk/queue/QueueRunRequestTest.kt index 278b11298..9d4ae70c2 100644 --- a/sdk/src/test/java/io/customer/sdk/queue/QueueRunRequestTest.kt +++ b/sdk/src/test/java/io/customer/sdk/queue/QueueRunRequestTest.kt @@ -1,6 +1,6 @@ package io.customer.sdk.queue -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import io.customer.sdk.error.CustomerIOError import io.customer.sdk.extensions.random import io.customer.sdk.queue.type.* @@ -9,7 +9,7 @@ import org.junit.Before import org.junit.Test import org.mockito.kotlin.* -class QueueRunRequestTest : BaseUnitTest() { +class QueueRunRequestTest : BaseLocalTest() { private lateinit var runRequest: QueueRunRequestImpl diff --git a/sdk/src/test/java/io/customer/sdk/queue/QueueTest.kt b/sdk/src/test/java/io/customer/sdk/queue/QueueTest.kt index a9f2f94a3..7385269b6 100644 --- a/sdk/src/test/java/io/customer/sdk/queue/QueueTest.kt +++ b/sdk/src/test/java/io/customer/sdk/queue/QueueTest.kt @@ -1,7 +1,7 @@ package io.customer.sdk.queue import com.squareup.moshi.JsonClass -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import io.customer.sdk.extensions.random import io.customer.sdk.queue.type.QueueModifyResult import io.customer.sdk.queue.type.QueueStatus @@ -17,7 +17,7 @@ import org.junit.Test import org.mockito.kotlin.* @ExperimentalCoroutinesApi -class QueueTest : BaseUnitTest() { +class QueueTest : BaseLocalTest() { private lateinit var queue: QueueImpl val storageMock: QueueStorage = mock() diff --git a/sdk/src/test/java/io/customer/sdk/util/JsonAdapterTest.kt b/sdk/src/test/java/io/customer/sdk/util/JsonAdapterTest.kt index 5e3de2fd9..eb299fa40 100644 --- a/sdk/src/test/java/io/customer/sdk/util/JsonAdapterTest.kt +++ b/sdk/src/test/java/io/customer/sdk/util/JsonAdapterTest.kt @@ -1,7 +1,7 @@ package io.customer.sdk.util import com.squareup.moshi.JsonClass -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import org.amshove.kluent.AnyException import org.amshove.kluent.invoking import org.amshove.kluent.shouldBeEqualTo @@ -10,7 +10,7 @@ import org.amshove.kluent.shouldNotBeNull import org.amshove.kluent.shouldThrow import org.junit.Test -class JsonAdapterTest : BaseUnitTest() { +class JsonAdapterTest : BaseLocalTest() { @JsonClass(generateAdapter = true) data class TestVo( diff --git a/sdk/src/test/java/io/customer/sdk/util/LoggerTest.kt b/sdk/src/test/java/io/customer/sdk/util/LoggerTest.kt index 84e4fb19f..11e5cc564 100644 --- a/sdk/src/test/java/io/customer/sdk/util/LoggerTest.kt +++ b/sdk/src/test/java/io/customer/sdk/util/LoggerTest.kt @@ -1,12 +1,12 @@ package io.customer.sdk.util -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import org.amshove.kluent.shouldBeEqualTo import org.junit.Test import org.mockito.kotlin.mock import org.mockito.kotlin.whenever -class LoggerTest : BaseUnitTest() { +class LoggerTest : BaseLocalTest() { // Test log levels diff --git a/sdk/src/test/java/io/customer/sdk/util/SecondsTest.kt b/sdk/src/test/java/io/customer/sdk/util/SecondsTest.kt index 42f9cf12d..caec5d3a1 100644 --- a/sdk/src/test/java/io/customer/sdk/util/SecondsTest.kt +++ b/sdk/src/test/java/io/customer/sdk/util/SecondsTest.kt @@ -1,10 +1,10 @@ package io.customer.sdk.util -import io.customer.commontest.BaseUnitTest +import io.customer.commontest.BaseLocalTest import org.amshove.kluent.shouldBeEqualTo import org.junit.Test -class SecondsTest : BaseUnitTest() { +class SecondsTest : BaseLocalTest() { @Test fun toMilliseconds_givenNumberOfSeconds_expectGetMillis() { @@ -33,7 +33,7 @@ class SecondsTest : BaseUnitTest() { } } -class MillisecondsTest : BaseUnitTest() { +class MillisecondsTest : BaseLocalTest() { @Test fun toSeconds_givenNumberOfMilliseconds_expectGetSeconds() {