Skip to content

Commit 5325ba0

Browse files
committed
Merge branch '2.8'
2 parents 12f3df5 + 6f7169b commit 5325ba0

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
}

0 commit comments

Comments
 (0)