From 49e1f19d7f851d5284e4358ada33fde68524e8a7 Mon Sep 17 00:00:00 2001 From: markvdouw Date: Mon, 17 Jul 2023 07:59:21 -0300 Subject: [PATCH] Fixing test to accomodate new architecture change for sideloaded kits --- src/test/kotlin/com/mparticle/kits/ApptentiveKitTest.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/test/kotlin/com/mparticle/kits/ApptentiveKitTest.kt b/src/test/kotlin/com/mparticle/kits/ApptentiveKitTest.kt index 56ec77d..74708a4 100644 --- a/src/test/kotlin/com/mparticle/kits/ApptentiveKitTest.kt +++ b/src/test/kotlin/com/mparticle/kits/ApptentiveKitTest.kt @@ -7,6 +7,7 @@ import apptentive.com.android.util.InternalUseOnly import apptentive.com.android.util.Log import apptentive.com.android.util.LogTag import com.mparticle.MParticle +import com.mparticle.MParticleOptions import io.mockk.every import io.mockk.mockk import io.mockk.mockkStatic @@ -49,11 +50,12 @@ class ApptentiveKitTest { @Test @Throws(Exception::class) fun testClassName() { - val factory = KitIntegrationFactory() - val integrations = factory.knownIntegrations + val options = Mockito.mock(MParticleOptions::class.java) + val factory = KitIntegrationFactory(options) + val integrations = factory.supportedKits.values val className = kit.javaClass.name for (integration in integrations) { - if (integration.value == className) { + if (integration.name == className) { return } }