コード例 #1
0
 @Test
 public void wrongActionKey() {
   Bundle bundle = new Bundle();
   bundle.putString("apptentive", wrongKey);
   assertNull(Apptentive.buildPendingIntentFromPushNotification(bundle));
   assertTrue(Apptentive.isApptentivePushNotification(bundle));
 }
コード例 #2
0
 @Test
 public void corrupt() {
   Bundle bundle = new Bundle();
   bundle.putString("apptentive", corrupt);
   assertNull(Apptentive.buildPendingIntentFromPushNotification(bundle));
   assertTrue(Apptentive.isApptentivePushNotification(bundle));
 }
コード例 #3
0
 @Test
 public void missingApptentive() {
   Bundle bundle = new Bundle();
   assertNull(Apptentive.buildPendingIntentFromPushNotification(bundle));
   assertFalse(Apptentive.isApptentivePushNotification(bundle));
 }