Skip to content

Commit 91e2dc5

Browse files
committed
Disable JSON extensions tests for JRuby native.
1 parent 96f0870 commit 91e2dc5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ruby/tests/basic_proto2.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,15 @@ def test_extension
264264
end
265265

266266
def test_extension_json
267+
omit "Java Protobuf JsonFormat does not handle Proto2 extensions" if defined? JRUBY_VERSION and :NATIVE == Google::Protobuf::IMPLEMENTATION
267268
message = TestExtensions.decode_json '{"[basic_test_proto2.optional_int32_extension]": 123}'
268269
extension = Google::Protobuf::DescriptorPool.generated_pool.lookup 'basic_test_proto2.optional_int32_extension'
269270
assert_instance_of Google::Protobuf::FieldDescriptor, extension
270271
assert_equal 123, extension.get(message)
271272
end
272273

273274
def test_extension_json_separate_pool
275+
omit "Java Protobuf JsonFormat does not handle Proto2 extensions" if defined? JRUBY_VERSION and :NATIVE == Google::Protobuf::IMPLEMENTATION
274276
pool = Google::Protobuf::DescriptorPool.new
275277

276278
# This serialized descriptor is a subset of basic_test_proto2.proto:

0 commit comments

Comments
 (0)