3333import java .util .Date ;
3434import java .util .HashMap ;
3535import java .util .List ;
36+ import java .util .Locale ;
3637import java .util .Map ;
3738import java .util .concurrent .TimeUnit ;
3839import org .junit .Test ;
@@ -769,7 +770,7 @@ public void testImageInAndroidNotification() throws IOException {
769770 assertJsonEquals (ImmutableMap .of (
770771 "topic" , "test-topic" , "notification" , notification , "android" , androidConfig ), message );
771772 }
772-
773+
773774 @ Test
774775 public void testImageInApnsNotification () throws IOException {
775776 Message message = Message .builder ()
@@ -799,7 +800,7 @@ public void testImageInApnsNotification() throws IOException {
799800 .build ();
800801 assertJsonEquals (expected , message );
801802 }
802-
803+
803804 @ Test
804805 public void testInvalidColorInAndroidNotificationLightSettings () throws IOException {
805806 try {
@@ -814,7 +815,7 @@ public void testInvalidColorInAndroidNotificationLightSettings() throws IOExcept
814815 // expected
815816 }
816817 }
817-
818+
818819 @ Test
819820 public void testExtendedAndroidNotificationParameters () throws IOException {
820821 long [] vibrateTimings = {1000L , 1001L };
@@ -848,7 +849,7 @@ public void testExtendedAndroidNotificationParameters() throws IOException {
848849 .put ("title" , "title" )
849850 .put ("body" , "body" )
850851 .build ();
851- String eventTime = new SimpleDateFormat ("yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS'Z'" )
852+ String eventTime = new SimpleDateFormat ("yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS'Z'" , Locale . US )
852853 .format (new Date (1546304523123L ));
853854 Map <String , Object > androidConfig = ImmutableMap .<String , Object >builder ()
854855 .put ("notification" , ImmutableMap .<String , Object >builder ()
0 commit comments