Skip to content

Commit

Permalink
fixed BaseLocalTest renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Sep 15, 2023
1 parent b8b2d59 commit 1086d7b
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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()
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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()
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/test/java/io/customer/sdk/api/HttpRetryPolicyTest.kt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions sdk/src/test/java/io/customer/sdk/data/store/ClientTest.kt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/test/java/io/customer/sdk/data/store/FileTypeTest.kt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/test/java/io/customer/sdk/hook/HookManagerTest.kt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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.*
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions sdk/src/test/java/io/customer/sdk/queue/QueueTest.kt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/test/java/io/customer/sdk/util/JsonAdapterTest.kt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/test/java/io/customer/sdk/util/LoggerTest.kt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions sdk/src/test/java/io/customer/sdk/util/SecondsTest.kt
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down Expand Up @@ -33,7 +33,7 @@ class SecondsTest : BaseUnitTest() {
}
}

class MillisecondsTest : BaseUnitTest() {
class MillisecondsTest : BaseLocalTest() {

@Test
fun toSeconds_givenNumberOfMilliseconds_expectGetSeconds() {
Expand Down

0 comments on commit 1086d7b

Please sign in to comment.