File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
java/core/src/test/java/com/google/protobuf Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 55import com .google .protobuf .Descriptors .Descriptor ;
66import com .google .protobuf .Descriptors .FieldDescriptor ;
77import com .google .protobuf .Descriptors .FileDescriptor ;
8- import proto2_unittest .UnittestCustomOptions ;
9- import proto2_unittest_import_option .TestMessage ;
10- import proto2_unittest_import_option .UnittestImportOptionProto ;
118import org .junit .Test ;
129import org .junit .runner .RunWith ;
1310import org .junit .runners .JUnit4 ;
11+ import proto2_unittest .UnittestCustomOptions ;
12+ import proto2_unittest_import_option .TestMessage ;
13+ import proto2_unittest_import_option .UnittestImportOptionProto ;
1414
1515/** Unit test for import option. */
1616@ RunWith (JUnit4 .class )
@@ -36,5 +36,8 @@ public void testImportOption() throws Exception {
3636 // TODO: Since `option_deps` are treated as `deps` in Bazel 7, the unknown
3737 // fields are not empty. Once we drop Bazel 7 support we can test that these are filled with
3838 // unknown fields.
39+ assertThat (unknownFieldsFile .asMap ().size ()).isAtMost (1 );
40+ assertThat (unknownFieldsMessage .asMap ().size ()).isAtMost (1 );
41+ assertThat (unknownFieldsField .asMap ().size ()).isAtMost (1 );
3942 }
4043}
You can’t perform that action at this time.
0 commit comments