@@ -191,7 +191,7 @@ private enum SelectFieldTestCase {
191191 BOOL ("single_bool" , true ),
192192 INT32 ("single_int32" , 4L ),
193193 INT64 ("single_int64" , 5L ),
194- UINT32 ("single_uint32" , UnsignedLong .valueOf (1L )),
194+ UINT32 ("single_uint32" , UnsignedLong .valueOf (0xFFFFFFFFL )),
195195 UINT64 ("single_uint64" , UnsignedLong .MAX_VALUE ),
196196 FLOAT ("single_float" , 1.5d ),
197197 DOUBLE ("single_double" , 2.5d ),
@@ -203,14 +203,18 @@ private enum SelectFieldTestCase {
203203 TIMESTAMP ("single_timestamp" , Instant .ofEpochSecond (100 )),
204204 INT32_WRAPPER ("single_int32_wrapper" , 5L ),
205205 INT64_WRAPPER ("single_int64_wrapper" , 10L ),
206- UINT32_WRAPPER ("single_uint32_wrapper" , UnsignedLong .valueOf (1L )),
206+ UINT32_WRAPPER ("single_uint32_wrapper" , UnsignedLong .valueOf (0xFFFFFFFFL )),
207207 UINT64_WRAPPER ("single_uint64_wrapper" , UnsignedLong .MAX_VALUE ),
208208 FLOAT_WRAPPER ("single_float_wrapper" , 7.5d ),
209209 DOUBLE_WRAPPER ("single_double_wrapper" , 8.5d ),
210210 STRING_WRAPPER ("single_string_wrapper" , "hello" ),
211211 BYTES_WRAPPER ("single_bytes_wrapper" , CelByteString .of (new byte [] {0x02 })),
212212 REPEATED_INT64 ("repeated_int64" , ImmutableList .of (5L )),
213+ REPEATED_UINT64 ("repeated_uint64" , ImmutableList .of (UnsignedLong .MAX_VALUE )),
213214 MAP_STRING_STRING ("map_string_string" , ImmutableMap .of ("a" , "b" )),
215+ MAP_UINT32_UINT64 (
216+ "map_uint32_uint64" ,
217+ ImmutableMap .of (UnsignedLong .valueOf (0xFFFFFFFFL ), UnsignedLong .MAX_VALUE )),
214218 NESTED_MESSAGE (
215219 "standalone_message" ,
216220 ProtoMessageValue .create (
@@ -653,7 +657,7 @@ private static TestAllTypes createPopulatedTestAllTypes() {
653657 .setSingleBool (true )
654658 .setSingleInt32 (4 )
655659 .setSingleInt64 (5L )
656- .setSingleUint32 (1 )
660+ .setSingleUint32 (0xFFFFFFFF )
657661 .setSingleUint64 (UnsignedLong .MAX_VALUE .longValue ())
658662 .setSingleFloat (1.5f )
659663 .setSingleDouble (2.5d )
@@ -664,14 +668,16 @@ private static TestAllTypes createPopulatedTestAllTypes() {
664668 .setSingleTimestamp (Timestamp .newBuilder ().setSeconds (100 ))
665669 .setSingleInt32Wrapper (Int32Value .of (5 ))
666670 .setSingleInt64Wrapper (Int64Value .of (10L ))
667- .setSingleUint32Wrapper (UInt32Value .of (1 ))
671+ .setSingleUint32Wrapper (UInt32Value .of (0xFFFFFFFF ))
668672 .setSingleUint64Wrapper (UInt64Value .of (UnsignedLong .MAX_VALUE .longValue ()))
669673 .setSingleStringWrapper (StringValue .of ("hello" ))
670674 .setSingleFloatWrapper (FloatValue .of (7.5f ))
671675 .setSingleDoubleWrapper (DoubleValue .of (8.5d ))
672676 .setSingleBytesWrapper (BytesValue .of (ByteString .copyFrom (new byte [] {0x02 })))
673677 .addRepeatedInt64 (5L )
678+ .addRepeatedUint64 (UnsignedLong .MAX_VALUE .longValue ())
674679 .putMapStringString ("a" , "b" )
680+ .putMapUint32Uint64 (0xFFFFFFFF , UnsignedLong .MAX_VALUE .longValue ())
675681 .setStandaloneMessage (NestedMessage .getDefaultInstance ())
676682 .setStandaloneEnum (NestedEnum .BAR )
677683 .build ();
0 commit comments