Skip to content

Commit

Permalink
fixed BaseIntegrationTest renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Sep 15, 2023
1 parent 9b0087c commit b8b2d59
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 34 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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
internal class GistSdkListenersTest : BaseInstrumentedTest() {
/**
* 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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
internal class ModuleMessagingInAppTest : BaseInstrumentedTest() {

private lateinit var module: ModuleMessagingInApp
private val gistInAppMessagesProvider: InAppMessagesProvider = 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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class PushMessageProcessorTest : BaseInstrumentedTest() {
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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class PushTrackingUtilTest : BaseInstrumentedTest() {

private lateinit var util: PushTrackingUtil

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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class CustomerIOIntegrationTest : BaseInstrumentedTest() {

// 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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class CustomerIOSharedTest : BaseInstrumentedTest() {
@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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class CustomerIOTest : BaseInstrumentedTest() {

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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class HttpRequestRunnerTest : BaseInstrumentedTest() {

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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class FileStorageTest : BaseInstrumentedTest() {

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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class QueueIntegrationTests : BaseInstrumentedTest() {

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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class QueueStorageIntegrationTest : BaseInstrumentedTest() {

// 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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class DeviceRepositoryTest : BaseInstrumentedTest() {

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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class ProfileRepositoryTest : BaseInstrumentedTest() {

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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class SharedPreferenceRepositoryTest : BaseInstrumentedTest() {

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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class SitePreferenceRepositoryTest : BaseInstrumentedTest() {

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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class TrackRepositoryTest : BaseInstrumentedTest() {

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.BaseIntegrationTest
import io.customer.commontest.BaseInstrumentedTest
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 : BaseIntegrationTest() {
class SimpleTimerTest : BaseInstrumentedTest() {

private lateinit var timer: AndroidSimpleTimer

Expand Down

0 comments on commit b8b2d59

Please sign in to comment.