File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/test/kotlin/com/mparticle/kits Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import com.leanplum.Leanplum
55import com.leanplum.LeanplumDeviceIdMode
66import com.mparticle.MParticle
77import com.mparticle.MParticle.IdentityType
8+ import com.mparticle.MParticleOptions
89import com.mparticle.MockMParticle
910import com.mparticle.identity.MParticleUser
1011import org.junit.Assert
@@ -30,11 +31,12 @@ class LeanplumKitTests {
3031 @Test
3132 @Throws(Exception ::class )
3233 fun testClassName () {
33- val factory = KitIntegrationFactory ()
34- val integrations = factory.knownIntegrations
34+ val options = Mockito .mock(MParticleOptions ::class .java)
35+ val factory = KitIntegrationFactory (options)
36+ val integrations = factory.supportedKits.values
3537 val className = kit.javaClass.name
3638 for (integration in integrations) {
37- if (integration.value == className) {
39+ if (integration.name == className) {
3840 return
3941 }
4042 }
You can’t perform that action at this time.
0 commit comments