You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdks/java/extensions/protobuf/src/test/java/org/apache/beam/sdk/extensions/protobuf/ProtoByteUtilsTest.java
+49Lines changed: 49 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,25 @@
29
29
@RunWith(JUnit4.class)
30
30
publicclassProtoByteUtilsTest {
31
31
32
+
privatestaticfinalStringPROTO_STRING_SCHEMA =
33
+
"syntax = \"proto3\";\n"
34
+
+ "\n"
35
+
+ "message MyMessage {\n"
36
+
+ " int32 id = 1;\n"
37
+
+ " string name = 2;\n"
38
+
+ " bool active = 3;\n"
39
+
+ "\n"
40
+
+ " // Nested field\n"
41
+
+ " message Address {\n"
42
+
+ " string street = 1;\n"
43
+
+ " string city = 2;\n"
44
+
+ " string state = 3;\n"
45
+
+ " string zip_code = 4;\n"
46
+
+ " }\n"
47
+
+ "\n"
48
+
+ " Address address = 4;\n"
49
+
+ "}";
50
+
32
51
privatestaticfinalStringDESCRIPTOR_PATH =
33
52
Objects.requireNonNull(
34
53
ProtoByteUtilsTest.class.getResource(
@@ -59,13 +78,26 @@ public void testProtoSchemaToBeamSchema() {
0 commit comments