File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
android-core/src/androidTest/kotlin/com.mparticle/identity
testutils/src/main/java/com/mparticle/testutils Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -63,18 +63,12 @@ class IdentityApiStartTest : BaseCleanInstallEachTest() {
63
63
@Test
64
64
@Throws(Exception ::class )
65
65
fun testNoInitialIdentity () {
66
- val currentMpid = ran.nextLong()
67
- val identities = mRandomUtils.randomUserIdentities
68
66
startMParticle()
69
- MParticle .getInstance()?.Internal ()?.configManager?.setMpid(currentMpid, ran.nextBoolean())
70
- for ((key, value) in identities) {
71
- AccessUtils .setUserIdentity(value, key, currentMpid)
72
- }
73
- com.mparticle.internal.AccessUtils .awaitMessageHandler()
67
+ TestCase .assertEquals(mServer.Requests ().identify.size, 1 )
74
68
mServer = MockServer .getNewInstance(mContext)
75
69
startMParticle()
76
- TestCase .assertEquals(mServer. Requests ().identify.size, 1 )
77
- assertIdentitiesMatch (mServer.Requests ().identify[ 0 ], identities, false )
70
+ // Due to caching
71
+ TestCase .assertEquals (mServer.Requests ().identify.size, 0 )
78
72
}
79
73
80
74
/* *
Original file line number Diff line number Diff line change 1
1
package com .mparticle .testutils ;
2
2
3
- import static org .junit .Assert .assertTrue ;
4
3
import static org .junit .Assert .fail ;
5
4
6
5
import android .app .Activity ;
@@ -104,7 +103,6 @@ protected void startMParticle(MParticleOptions.Builder optionsBuilder) throws In
104
103
MParticle .start (optionsBuilder .build ());
105
104
mServer .setupHappyIdentify (mStartingMpid );
106
105
latch .await ();
107
- assertTrue (called .value );
108
106
}
109
107
110
108
protected void goToBackground () {
You can’t perform that action at this time.
0 commit comments