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 17, 2023
1 parent 8101e62 commit 5230aba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/test/kotlin/com/mparticle/kits/KitTests.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 KitTests {
@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 5230aba

Please sign in to comment.