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 authored Jul 20, 2023
1 parent 8a13eb0 commit f470041
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/test/kotlin/com/mparticle/kits/RadarKitTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.mparticle.kits

import android.content.Context
import com.mparticle.MParticle.IdentityType
import com.mparticle.MParticleOptions
import com.mparticle.identity.MParticleUser
import org.json.JSONObject
import org.junit.Assert
Expand Down Expand Up @@ -41,11 +42,12 @@ class RadarKitTests {
@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 f470041

Please sign in to comment.