Skip to content

Commit 6e86efa

Browse files
author
markvdouw
authored
Fixing test to accomodate new architecture change for sideloaded kits (#97)
1 parent 21377a5 commit 6e86efa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/test/kotlin/com/mparticle/kits/TaplyticsKitTest.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.mparticle.kits
22

33
import android.content.Context
4+
import com.mparticle.MParticleOptions
45
import org.junit.Assert
56
import org.junit.Before
67
import org.junit.Test
@@ -47,11 +48,12 @@ class KitTests {
4748
@Test
4849
@Throws(Exception::class)
4950
fun testClassName() {
50-
val factory = KitIntegrationFactory()
51-
val integrations = factory.knownIntegrations
51+
val options = Mockito.mock(MParticleOptions::class.java)
52+
val factory = KitIntegrationFactory(options)
53+
val integrations = factory.supportedKits.values
5254
val className = kit.javaClass.name
5355
for (integration in integrations) {
54-
if (integration.value == className) {
56+
if (integration.name == className) {
5557
return
5658
}
5759
}

0 commit comments

Comments
 (0)