@@ -168,7 +168,7 @@ public void testSetEmailWithoutAutomaticPushRegistration() throws Exception {
168168 IterableApi .sharedInstance = Mockito .spy (new IterableApi ());
169169 IterableApi .initialize (RuntimeEnvironment .application , "fake_key" , new IterableConfig .Builder ().setPushIntegrationName ("pushIntegration" ).setAutoPushRegistration (false ).build ());
170170
171- // Check that setEmail calls registerForPush
171+ // Check that setEmail doesn't call registerForPush or disablePush
172172 IterableApi .
getInstance ().
setEmail (
"[email protected] " );
173173 IterableApi .getInstance ().setEmail (null );
174174 verify (IterableApi .sharedInstance , never ()).registerForPush ();
@@ -181,12 +181,12 @@ public void testSetUserIdWithAutomaticPushRegistration() throws Exception {
181181 IterableApi .sharedInstance = Mockito .spy (new IterableApi ());
182182 IterableApi .initialize (RuntimeEnvironment .application , "fake_key" , new IterableConfig .Builder ().setPushIntegrationName ("pushIntegration" ).setAutoPushRegistration (true ).build ());
183183
184- // Check that setEmail calls registerForPush
184+ // Check that setUserId calls registerForPush
185185 IterableApi .getInstance ().setUserId ("userId" );
186186 verify (IterableApi .sharedInstance ).registerForPush ();
187187 Mockito .reset (IterableApi .sharedInstance );
188188
189- // Check that setEmail (null) disables the device
189+ // Check that setUserId (null) disables the device
190190 IterableApi .getInstance ().setUserId (null );
191191 verify (IterableApi .sharedInstance ).disablePush ();
192192 Mockito .reset (IterableApi .sharedInstance );
0 commit comments