@@ -83,7 +83,7 @@ public void testMinuteInterval() throws Exception {
8383
8484 public void testSecondInterval () throws Exception {
8585 int randomSeconds = randomNonNegativeInt ();
86- int randomMillis = randomBoolean () ? (randomBoolean () ? 0 : 999999999 ) : randomInt (999999999 );
86+ int randomMillis = randomBoolean () ? (randomBoolean () ? 0 : 999 ) : randomInt (999 );
8787 String value = format (Locale .ROOT , "%s%d.%d" , sign , randomSeconds , randomMillis );
8888 TemporalAmount amount = parseInterval (EMPTY , value , INTERVAL_SECOND );
8989 assertEquals (maybeNegate (sign , Duration .ofSeconds (randomSeconds ).plusMillis (randomMillis )), amount );
@@ -128,7 +128,7 @@ public void testDayToSecond() throws Exception {
128128 int randomSecond = randomInt (59 );
129129
130130 boolean withMillis = randomBoolean ();
131- int randomMilli = withMillis ? randomInt (999999999 ) : 0 ;
131+ int randomMilli = withMillis ? randomInt (999 ) : 0 ;
132132 String millisString = withMillis ? "." + randomMilli : "" ;
133133
134134 String value = format (Locale .ROOT , "%s%d %d:%d:%d%s" , sign , randomDay , randomHour , randomMinute , randomSecond , millisString );
@@ -151,7 +151,7 @@ public void testHourToSecond() throws Exception {
151151 int randomSecond = randomInt (59 );
152152
153153 boolean withMillis = randomBoolean ();
154- int randomMilli = withMillis ? randomInt (999999999 ) : 0 ;
154+ int randomMilli = withMillis ? randomInt (999 ) : 0 ;
155155 String millisString = withMillis ? "." + randomMilli : "" ;
156156
157157 String value = format (Locale .ROOT , "%s%d:%d:%d%s" , sign , randomHour , randomMinute , randomSecond , millisString );
@@ -165,7 +165,7 @@ public void testMinuteToSecond() throws Exception {
165165 int randomSecond = randomInt (59 );
166166
167167 boolean withMillis = randomBoolean ();
168- int randomMilli = withMillis ? randomInt (999999999 ) : 0 ;
168+ int randomMilli = withMillis ? randomInt (999 ) : 0 ;
169169 String millisString = withMillis ? "." + randomMilli : "" ;
170170
171171 String value = format (Locale .ROOT , "%s%d:%d%s" , sign , randomMinute , randomSecond , millisString );
@@ -186,11 +186,11 @@ public void testYearToMonthTooBig() throws Exception {
186186
187187 public void testMillisTooBig () throws Exception {
188188 int randomSeconds = randomNonNegativeInt ();
189- int millisTooLarge = 1234567890 ;
189+ int millisTooLarge = 1234 ;
190190 String value = format (Locale .ROOT , "%s%d.%d" , sign , randomSeconds , millisTooLarge );
191191 ParsingException pe = expectThrows (ParsingException .class , () -> parseInterval (EMPTY , value , INTERVAL_SECOND ));
192192 assertEquals ("line -1:0: Invalid [INTERVAL SECOND] value [" + value + "]: [MILLISECOND] unit has illegal value [" + millisTooLarge
193- + "], expected a positive number up to [999999999 ]" , pe .getMessage ());
193+ + "], expected a positive number up to [999 ]" , pe .getMessage ());
194194 }
195195
196196 public void testDayToMinuteTooBig () throws Exception {
0 commit comments