From 490c6f55c1d00f136c7c54a1937ea0f6c2086a40 Mon Sep 17 00:00:00 2001 From: markvdouw Date: Mon, 17 Jul 2023 07:37:15 -0300 Subject: [PATCH] Fixing test to accomodate new architecture change for sideloaded kits --- src/test/kotlin/com/mparticle/kits/AdjustKitTests.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/test/kotlin/com/mparticle/kits/AdjustKitTests.kt b/src/test/kotlin/com/mparticle/kits/AdjustKitTests.kt index 9ca8424..16a7641 100644 --- a/src/test/kotlin/com/mparticle/kits/AdjustKitTests.kt +++ b/src/test/kotlin/com/mparticle/kits/AdjustKitTests.kt @@ -2,6 +2,7 @@ package com.mparticle.kits import android.content.Context import com.adjust.sdk.AdjustAttribution +import com.mparticle.MParticleOptions import com.mparticle.kits.AdjustKit.Companion.toJSON import org.json.JSONException import org.json.JSONObject @@ -42,11 +43,12 @@ class AdjustKitTests { @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 } }