Home
last modified time | relevance | path

Searched refs:OPTIONAL_INT32 (Results 1 – 1 of 1) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DTextFormatParseInfoTreeTest.java42 private static final FieldDescriptor OPTIONAL_INT32 = field in TextFormatParseInfoTreeTest
71 rootBuilder.setLocation(OPTIONAL_INT32, LOC0); in testGetLocationReturnsSingleLocation()
73 assertEquals(LOC0, root.getLocation(OPTIONAL_INT32, 0)); in testGetLocationReturnsSingleLocation()
74 assertEquals(1, root.getLocations(OPTIONAL_INT32).size()); in testGetLocationReturnsSingleLocation()
78 assertTrue(rootBuilder.build().getLocations(OPTIONAL_INT32).isEmpty()); in testGetLocationsReturnsNoParseLocationsForUnknownField()
81 assertTrue(root.getLocations(OPTIONAL_INT32).isEmpty()); in testGetLocationsReturnsNoParseLocationsForUnknownField()
89 root.getNestedTree(OPTIONAL_INT32, 0); in testGetLocationThrowsIllegalArgumentExceptionForUnknownField()
97 TextFormatParseInfoTree root = rootBuilder.setLocation(OPTIONAL_INT32, LOC0).build(); in testGetLocationThrowsIllegalArgumentExceptionForInvalidIndex()
99 root.getLocation(OPTIONAL_INT32, 1); in testGetLocationThrowsIllegalArgumentExceptionForInvalidIndex()
105 root.getLocation(OPTIONAL_INT32, -1); in testGetLocationThrowsIllegalArgumentExceptionForInvalidIndex()