File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
protobuf/src/test/java/com/fasterxml/jackson/dataformat/protobuf/failing Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ package com .fasterxml .jackson .dataformat .protobuf .failing ;
2
+
3
+ import java .io .StringReader ;
4
+
5
+ import com .fasterxml .jackson .dataformat .protobuf .ProtobufMapper ;
6
+ import com .fasterxml .jackson .dataformat .protobuf .ProtobufTestBase ;
7
+ import com .fasterxml .jackson .dataformat .protobuf .schema .ProtobufSchema ;
8
+
9
+ public class GenerateNestedType73Test extends ProtobufTestBase
10
+ {
11
+ /*
12
+ /**********************************************************
13
+ /* Test methods
14
+ /**********************************************************
15
+ */
16
+
17
+ final ProtobufMapper MAPPER = new ProtobufMapper ();
18
+
19
+ // [dataformats-binary#68]
20
+ public void testNestedTypes () throws Exception
21
+ {
22
+ final String SCHEMA_STR =
23
+ " package mypackage;\n "
24
+ +" message t1 {\n "
25
+ +" message i1 {\n "
26
+ +" optional uint32 x = 1;\n "
27
+ +" optional uint32 y = 2;\n "
28
+ +" }\n "
29
+ +" }\n "
30
+ +" message t2 {\n "
31
+ +" optional t1.i1 z = 1;\n "
32
+ +" }\n "
33
+ ;
34
+
35
+ ProtobufSchema schema = MAPPER .schemaLoader ()
36
+ .load (new StringReader (SCHEMA_STR ));
37
+ assertNotNull (schema );
38
+ }
39
+ }
You can’t perform that action at this time.
0 commit comments