Skip to content

Commit

Permalink
Fixing test to accomodate new architecture change for sideloaded kits (
Browse files Browse the repository at this point in the history
  • Loading branch information
markvdouw committed Jul 20, 2023
1 parent 38e4fd0 commit e43a252
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/test/kotlin/com/mparticle/kits/LocalyticsKitTests.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.mparticle.kits

import android.content.Context
import com.mparticle.MParticleOptions
import org.junit.Assert
import org.junit.Test
import org.mockito.Mockito
Expand Down Expand Up @@ -38,11 +39,12 @@ class LocalyticsKitTests {
@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
}
}
Expand Down

0 comments on commit e43a252

Please sign in to comment.