@Test public void wrongActionKey() { Bundle bundle = new Bundle(); bundle.putString("apptentive", wrongKey); assertNull(Apptentive.buildPendingIntentFromPushNotification(bundle)); assertTrue(Apptentive.isApptentivePushNotification(bundle)); }
@Test public void corrupt() { Bundle bundle = new Bundle(); bundle.putString("apptentive", corrupt); assertNull(Apptentive.buildPendingIntentFromPushNotification(bundle)); assertTrue(Apptentive.isApptentivePushNotification(bundle)); }
@Test public void missingApptentive() { Bundle bundle = new Bundle(); assertNull(Apptentive.buildPendingIntentFromPushNotification(bundle)); assertFalse(Apptentive.isApptentivePushNotification(bundle)); }