File tree Expand file tree Collapse file tree
src/test/java/com/google/firebase/messaging Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1249,6 +1249,21 @@ public void testAndroidNotificationV2WithNegativeVibrateTimings() {
12491249 }
12501250 }
12511251
1252+ @ Test (expected = NullPointerException .class )
1253+ public void testAndroidNotificationV2WithNullVibrateTimings () {
1254+ AndroidNotificationV2 .builder ().setVibrateTimingsInMillis (null );
1255+ }
1256+
1257+ @ Test (expected = NullPointerException .class )
1258+ public void testAndroidNotificationV2WithNullBodyLocArgs () {
1259+ AndroidNotificationV2 .builder ().addAllBodyLocalizationArgs (null );
1260+ }
1261+
1262+ @ Test (expected = NullPointerException .class )
1263+ public void testAndroidNotificationV2WithNullTitleLocArgs () {
1264+ AndroidNotificationV2 .builder ().addAllTitleLocalizationArgs (null );
1265+ }
1266+
12521267 private static void assertJsonEquals (
12531268 Map <String , Object > expected , Object actual ) throws IOException {
12541269 assertEquals (expected , toMap (actual ));
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ public class MulticastMessageTest {
3232 .build ();
3333 private static final AndroidConfigV2 ANDROID_V2 = AndroidConfigV2 .builder ()
3434 .setCollapseKey ("collapseKeyV2" )
35+ .setBackgroundSync (AndroidBackgroundSyncMessage .builder ().build ())
3536 .build ();
3637 private static final ApnsConfig APNS = ApnsConfig .builder ()
3738 .setAps (Aps .builder ()
You can’t perform that action at this time.
0 commit comments