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 } }