Skip to content

Commit

Permalink
base class rename updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Sep 18, 2023
1 parent 7fde12d commit 00ecf83
Show file tree
Hide file tree
Showing 32 changed files with 65 additions and 65 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.customer.messaginginapp

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.messaginginapp.gist.data.model.Message
import io.customer.messaginginapp.gist.presentation.GistListener
import io.customer.messaginginapp.gist.presentation.GistSdk
Expand All @@ -13,7 +13,7 @@ import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
internal class GistSdkListenersTest : BaseInstrumentedTest() {
internal class GistSdkListenersTest : BaseAndroidTest() {
/**
* This test validates if individual listeners can be removed without any exceptions.
* See https://github.com/customerio/customerio-android/issues/245 for more details.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.customer.messaginginapp

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.messaginginapp.di.inAppMessaging
import io.customer.messaginginapp.provider.InAppMessagesProvider
import io.customer.messaginginapp.type.InAppEventListener
Expand All @@ -21,7 +21,7 @@ import org.junit.runner.RunWith
import org.mockito.kotlin.*

@RunWith(AndroidJUnit4::class)
internal class ModuleMessagingInAppTest : BaseInstrumentedTest() {
internal class ModuleMessagingInAppTest : BaseAndroidTest() {

private lateinit var module: ModuleMessagingInApp
private val gistInAppMessagesProvider: InAppMessagesProvider = mock()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.customer.messaginginapp

import io.customer.commontest.BaseLocalTest
import io.customer.commontest.BaseUnitTest
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 : BaseLocalTest() {
internal class InAppMessagesProviderTest : BaseUnitTest() {

private lateinit var gistInAppMessagesProvider: GistInAppMessagesProvider
private val gistApiProvider: GistApi = mock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package io.customer.messagingpush.processor
import android.content.Intent
import android.os.Bundle
import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.messagingpush.MessagingPushModuleConfig
import io.customer.messagingpush.ModuleMessagingPushFCM
import io.customer.messagingpush.di.moduleConfig
Expand All @@ -24,7 +24,7 @@ import org.mockito.kotlin.verifyNoInteractions
import org.mockito.kotlin.whenever

@RunWith(AndroidJUnit4::class)
class PushMessageProcessorTest : BaseInstrumentedTest() {
class PushMessageProcessorTest : BaseAndroidTest() {
private val modules = hashMapOf<String, CustomerIOModule<*>>()
private val customerIOMock: CustomerIOInstance = mock()
private val trackRepositoryMock: TrackRepository = mock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package io.customer.messagingpush.util

import android.os.Bundle
import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.sdk.data.request.MetricEvent
import io.customer.sdk.extensions.random
import io.customer.sdk.repository.TrackRepository
Expand All @@ -15,7 +15,7 @@ import org.mockito.kotlin.verify
import org.mockito.kotlin.verifyNoInteractions

@RunWith(AndroidJUnit4::class)
class PushTrackingUtilTest : BaseInstrumentedTest() {
class PushTrackingUtilTest : BaseAndroidTest() {

private lateinit var util: PushTrackingUtil

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.customer.messagingpush

import io.customer.commontest.BaseLocalTest
import io.customer.commontest.BaseUnitTest
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 : BaseLocalTest() {
internal class ModuleMessagingConfigTest : BaseUnitTest() {

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.BaseLocalTest
import io.customer.commontest.BaseUnitTest
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 : BaseLocalTest() {
internal class ModuleMessagingPushFCMTest : BaseUnitTest() {

private val customerIOMock: CustomerIOInstance = mock()
private val fcmTokenProviderMock: DeviceTokenProvider = mock()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.customer.sdk

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.commontest.extensions.enqueue
import io.customer.commontest.extensions.enqueueNoInternetConnection
import io.customer.commontest.extensions.enqueueSuccessful
Expand All @@ -14,7 +14,7 @@ import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
class CustomerIOIntegrationTest : BaseInstrumentedTest() {
class CustomerIOIntegrationTest : BaseAndroidTest() {

// The BQ should be able to handle N number of tasks inside of it without throwing an error.
// This edge case mostly came from iOS having a stackoverflow during BQ execution.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.customer.sdk

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.sdk.di.CustomerIOSharedComponent
import io.customer.sdk.di.CustomerIOStaticComponent
import io.customer.sdk.repository.preference.CustomerIOStoredValues
Expand All @@ -17,7 +17,7 @@ import org.mockito.kotlin.verify
import org.mockito.kotlin.whenever

@RunWith(AndroidJUnit4::class)
class CustomerIOSharedTest : BaseInstrumentedTest() {
class CustomerIOSharedTest : BaseAndroidTest() {
@Test
fun verifyInstanceAccessedMultipleTimes_givenNoSpecialCondition_expectSameInstance() {
val instance1 = CustomerIOShared.instance()
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/androidTest/java/io/customer/sdk/CustomerIOTest.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.customer.sdk

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.sdk.data.model.Region
import io.customer.sdk.data.store.Client
import io.customer.sdk.di.CustomerIOSharedComponent
Expand Down Expand Up @@ -30,7 +30,7 @@ import org.mockito.kotlin.verify
import org.mockito.kotlin.whenever

@RunWith(AndroidJUnit4::class)
class CustomerIOTest : BaseInstrumentedTest() {
class CustomerIOTest : BaseAndroidTest() {

private val cleanupRepositoryMock: CleanupRepository = mock()
private val deviceRepositoryMock: DeviceRepository = mock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.base.extenstions.add
import io.customer.base.extenstions.hasPassed
import io.customer.base.extenstions.subtract
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.commontest.extensions.toResponseBody
import io.customer.sdk.error.CustomerIOApiErrorResponse
import io.customer.sdk.error.CustomerIOApiErrorsResponse
Expand All @@ -31,7 +31,7 @@ import org.mockito.kotlin.whenever
import retrofit2.Response

@RunWith(AndroidJUnit4::class)
class HttpRequestRunnerTest : BaseInstrumentedTest() {
class HttpRequestRunnerTest : BaseAndroidTest() {

private lateinit var httpRunner: HttpRequestRunnerImpl

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package io.customer.sdk.data.store

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.sdk.extensions.random
import org.amshove.kluent.shouldBeEqualTo
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
class FileStorageTest : BaseInstrumentedTest() {
class FileStorageTest : BaseAndroidTest() {

private lateinit var fileStorage: FileStorage

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.customer.sdk.queue

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.commontest.extensions.enqueueNoInternetConnection
import io.customer.sdk.data.model.EventType
import io.customer.sdk.extensions.random
Expand All @@ -13,7 +13,7 @@ import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
class QueueIntegrationTests : BaseInstrumentedTest() {
class QueueIntegrationTests : BaseAndroidTest() {

private lateinit var queue: Queue
private lateinit var queueStorage: QueueStorage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package io.customer.sdk.queue

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.base.extenstions.subtract
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.sdk.extensions.random
import io.customer.sdk.queue.type.*
import java.util.*
Expand All @@ -13,7 +13,7 @@ import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
class QueueStorageIntegrationTest : BaseInstrumentedTest() {
class QueueStorageIntegrationTest : BaseAndroidTest() {

// using real instance of FileStorage to perform integration test
private lateinit var queueStorage: QueueStorageImpl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.customer.sdk.repository

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.sdk.data.request.Device
import io.customer.sdk.extensions.random
import io.customer.sdk.queue.Queue
Expand All @@ -16,7 +16,7 @@ import org.mockito.kotlin.verify
import org.mockito.kotlin.verifyNoInteractions

@RunWith(AndroidJUnit4::class)
class DeviceRepositoryTest : BaseInstrumentedTest() {
class DeviceRepositoryTest : BaseAndroidTest() {

private val prefRepository: SitePreferenceRepository
get() = di.sitePreferenceRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.customer.sdk.repository

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.sdk.extensions.random
import io.customer.sdk.hooks.HooksManager
import io.customer.sdk.hooks.ModuleHook
Expand All @@ -20,7 +20,7 @@ import org.mockito.Mockito.verifyNoInteractions
import org.mockito.kotlin.*

@RunWith(AndroidJUnit4::class)
class ProfileRepositoryTest : BaseInstrumentedTest() {
class ProfileRepositoryTest : BaseAndroidTest() {

private val prefRepository: SitePreferenceRepository
get() = di.sitePreferenceRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.customer.sdk.repository

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.sdk.repository.preference.*
import java.util.*
import org.amshove.kluent.shouldBeEqualTo
Expand All @@ -11,7 +11,7 @@ import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
class SharedPreferenceRepositoryTest : BaseInstrumentedTest() {
class SharedPreferenceRepositoryTest : BaseAndroidTest() {

private lateinit var prefRepository: SharedPreferenceRepository

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package io.customer.sdk.repository

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.base.extenstions.unixTimeToDate
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.sdk.repository.preference.SitePreferenceRepository
import io.customer.sdk.repository.preference.SitePreferenceRepositoryImpl
import java.util.*
Expand All @@ -14,7 +14,7 @@ import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
class SitePreferenceRepositoryTest : BaseInstrumentedTest() {
class SitePreferenceRepositoryTest : BaseAndroidTest() {

private lateinit var prefRepository: SitePreferenceRepository

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.customer.sdk.repository

import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import io.customer.sdk.data.model.EventType
import io.customer.sdk.data.request.MetricEvent
import io.customer.sdk.extensions.random
Expand All @@ -17,7 +17,7 @@ import org.junit.runner.RunWith
import org.mockito.kotlin.*

@RunWith(AndroidJUnit4::class)
class TrackRepositoryTest : BaseInstrumentedTest() {
class TrackRepositoryTest : BaseAndroidTest() {

private val prefRepository: SitePreferenceRepository
get() = di.sitePreferenceRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package io.customer.sdk.util

import androidx.test.annotation.UiThreadTest
import androidx.test.ext.junit.runners.AndroidJUnit4
import io.customer.commontest.BaseInstrumentedTest
import io.customer.commontest.BaseAndroidTest
import org.amshove.kluent.shouldBeFalse
import org.amshove.kluent.shouldBeTrue
import org.junit.After
Expand All @@ -14,7 +14,7 @@ import org.junit.runner.RunWith
* Tests must be executed on Android device, only. Running on robolectric gave false positive results.
*/
@RunWith(AndroidJUnit4::class)
class SimpleTimerTest : BaseInstrumentedTest() {
class SimpleTimerTest : BaseAndroidTest() {

private lateinit var timer: AndroidSimpleTimer

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.BaseLocalTest
import io.customer.commontest.BaseUnitTest
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 : BaseLocalTest() {
class HttpRetryPolicyTest : BaseUnitTest() {

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.BaseLocalTest
import io.customer.commontest.BaseUnitTest
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 : BaseLocalTest() {
class CustomAttributesAdapterTest : BaseUnitTest() {

private lateinit var adapter: CustomAttributesAdapter

Expand Down
Loading

0 comments on commit 00ecf83

Please sign in to comment.