Go to the documentation of this file.
31 package com.google.protobuf;
36 import junit.framework.TestCase;
53 TestAllTypes.NestedMessage.getDescriptor().findFieldByName(
"bb");
67 assertTrue(
tree.getLocations(
null).isEmpty());
90 fail(
"Did not detect unknown field");
91 }
catch (IllegalArgumentException expected) {
100 fail(
"Invalid index not detected");
101 }
catch (IllegalArgumentException expected) {
106 fail(
"Negative index not detected");
107 }
catch (IllegalArgumentException expected) {
126 fail(
"Did not detect unknown field");
127 }
catch (IllegalArgumentException expected) {
144 fail(
"Submessage index that is too large not detected");
145 }
catch (IllegalArgumentException expected) {
150 fail(
"Invalid submessage index (-1) not detected");
151 }
catch (IllegalArgumentException expected) {
161 assertNotNull(subtree);
167 subtree1Builder.getBuilderForSubMessageField(
FIELD_BB);
168 subtree1Builder.getBuilderForSubMessageField(
FIELD_BB);
171 subtree2Builder.getBuilderForSubMessageField(
FIELD_BB);
void testGetLocationsReturnsMultipleLocations()
void testGetNestedTreesReturnsMultipleTrees()
static final TextFormatParseLocation LOC1
void testGetLocationReturnsSingleLocation()
def root(location=None, arch=None, version=None, threading=None, exceptions=None, revision=None, log=EmptyLogger())
void testGetLocationsReturnsNoParseLocationsForUnknownField()
static final FieldDescriptor FIELD_BB
void testGetLocationThrowsIllegalArgumentExceptionForUnknownField()
void testGetNestedTreeThrowsIllegalArgumentExceptionForUnknownField()
TextFormatParseInfoTree getNestedTree(final FieldDescriptor fieldDescriptor, int index)
static final FieldDescriptor OPTIONAL_NESTED_MESSAGE
static final FieldDescriptor REPEATED_NESTED_MESSAGE
void testGetLocationThrowsIllegalArgumentExceptionForInvalidIndex()
void testGetNestedTreesReturnsNoParseInfoTreesForUnknownField()
void testGetNestedTreeThrowsIllegalArgumentExceptionForInvalidIndex()
static final FieldDescriptor REPEATED_INT32
void testGetNestedTreesReturnsSingleTree()
List< TextFormatParseLocation > getLocations(final FieldDescriptor fieldDescriptor)
TextFormatParseInfoTree.Builder rootBuilder
FieldDescriptor findFieldByName(final String name)
static final FieldDescriptor OPTIONAL_BOOLEAN
static final FieldDescriptor OPTIONAL_INT32
static final TextFormatParseLocation LOC0
void testBuildEmptyParseTree()
static final Descriptor DESCRIPTOR
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:00