Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
com.google.protobuf.MapForProto2Test Class Reference
Inheritance diagram for com.google.protobuf.MapForProto2Test:
Inheritance graph
[legend]

Public Member Functions

void doTestGetOrDefault (TestMapOrBuilder testMapOrBuilder)
 
void doTestGetOrDefault (TestMapOrBuilder testMapOrBuilder)
 
void doTestGetOrThrow (TestMapOrBuilder testMapOrBuilder)
 
void doTestGetOrThrow (TestMapOrBuilder testMapOrBuilder)
 
void testContains ()
 
void testContains ()
 
void testCount ()
 
void testCount ()
 
void testDynamicMessage () throws Exception
 
void testDynamicMessage () throws Exception
 
void testDynamicMessageUnsetKeyAndValue () throws Exception
 
void testDynamicMessageUnsetKeyAndValue () throws Exception
 
void testEqualsAndHashCode () throws Exception
 
void testEqualsAndHashCode () throws Exception
 
void testGetMap ()
 
void testGetMap ()
 
void testGetMapIsImmutable ()
 
void testGetMapIsImmutable ()
 
void testGetOrDefault ()
 
void testGetOrDefault ()
 
void testGetOrThrow ()
 
void testGetOrThrow ()
 
void testGettersAndSetters () throws Exception
 
void testGettersAndSetters () throws Exception
 
void testIterationOrder () throws Exception
 
void testIterationOrder () throws Exception
 
void testMapInitializationOrder () throws Exception
 
void testMapInitializationOrder () throws Exception
 
void testMergeFrom () throws Exception
 
void testMergeFrom () throws Exception
 
void testMutableMapLifecycle ()
 
void testMutableMapLifecycle ()
 
void testMutableMapLifecycle_collections ()
 
void testMutableMapLifecycle_collections ()
 
void testParseError () throws Exception
 
void testParseError () throws Exception
 
void testPut ()
 
void testPut ()
 
void testPutAll () throws Exception
 
void testPutAll () throws Exception
 
void testPutAllWithNullStringKey () throws Exception
 
void testPutAllWithNullStringValue () throws Exception
 
void testPutChecksNullKey () throws Exception
 
void testPutChecksNullKeysAndValues () throws Exception
 
void testPutChecksNullValues () throws Exception
 
void testPutNullStringValue () throws Exception
 
void testRecursiveMap () throws Exception
 
void testRecursiveMap () throws Exception
 
void testReflectionApi () throws Exception
 
void testReflectionApi () throws Exception
 
void testReflectionEqualsAndHashCode () throws Exception
 
void testReflectionEqualsAndHashCode () throws Exception
 
void testRemove ()
 
void testRemove ()
 
void testRequiredMessage () throws Exception
 
void testRequiredMessage () throws Exception
 
void testReservedWordsFieldNames ()
 
void testReservedWordsFieldNames ()
 
void testSerializeAndParse () throws Exception
 
void testSerializeAndParse () throws Exception
 
void testSetMapValues ()
 
void testSetMapValues ()
 
void testTextFormat () throws Exception
 
void testTextFormat () throws Exception
 
void testUnknownEnumValues () throws Exception
 
void testUnknownEnumValues () throws Exception
 
void testUpdateMapValues ()
 
void testUpdateMapValues ()
 

Private Member Functions

void assertMapContainsSetValues (TestMapOrBuilder testMapOrBuilder)
 
void assertMapContainsSetValues (TestMapOrBuilder testMapOrBuilder)
 
void assertMapCounts (int expectedCount, TestMapOrBuilder testMapOrBuilder)
 
void assertMapCounts (int expectedCount, TestMapOrBuilder testMapOrBuilder)
 
void assertMapsAreImmutable (TestMapOrBuilder testMapOrBuilder)
 
void assertMapsAreImmutable (TestMapOrBuilder testMapOrBuilder)
 
void assertMapValuesCleared (TestMapOrBuilder testMapOrBuilder)
 
void assertMapValuesCleared (TestMapOrBuilder testMapOrBuilder)
 
void assertMapValuesSet (TestMapOrBuilder message)
 
void assertMapValuesSet (TestMapOrBuilder message)
 
void assertMapValuesUpdated (TestMap message)
 
void assertMapValuesUpdated (TestMap message)
 
void copyMapValues (TestMap source, TestMap.Builder destination)
 
void copyMapValues (TestMap source, TestMap.Builder destination)
 
void setMapValuesUsingAccessors (TestMap.Builder builder)
 
void setMapValuesUsingAccessors (TestMap.Builder builder)
 
void setMapValuesUsingMutableMap (TestMap.Builder builder)
 
void setMapValuesUsingMutableMap (TestMap.Builder builder)
 
TestMap tryParseTestMap (BizarroTestMap bizarroMap) throws IOException
 
TestMap tryParseTestMap (BizarroTestMap bizarroMap) throws IOException
 
void updateMapValuesUsingAccessors (TestMap.Builder builder)
 
void updateMapValuesUsingAccessors (TestMap.Builder builder)
 
void updateMapValuesUsingMutableMap (TestMap.Builder builder)
 
void updateMapValuesUsingMutableMap (TestMap.Builder builder)
 

Static Private Member Functions

static void assertHasMapValues (Message message, String name, Map<?, ?> values)
 
static void assertHasMapValues (Message message, String name, Map<?, ?> values)
 
static FieldDescriptor f (String name)
 
static FieldDescriptor f (String name)
 
static Object getFieldValue (Message mapEntry, String name)
 
static Object getFieldValue (Message mapEntry, String name)
 
static< K, V > Map< K, V > mapForValues (K key1, V value1, K key2, V value2)
 
static< K, V > Map< K, V > mapForValues (K key1, V value1, K key2, V value2)
 
static< K, V > Map< K, V > newMap (K key1, V value1)
 
static< K, V > Map< K, V > newMap (K key1, V value1)
 
static< K, V > Map< K, V > newMap (K key1, V value1, K key2, V value2)
 
static< K, V > Map< K, V > newMap (K key1, V value1, K key2, V value2)
 
static< K, V > Message newMapEntry (Message.Builder builder, String name, K key, V value)
 
static< K, V > Message newMapEntry (Message.Builder builder, String name, K key, V value)
 
static Message.Builder setFieldValue (Message.Builder mapEntry, String name, Object value)
 
static Message.Builder setFieldValue (Message.Builder mapEntry, String name, Object value)
 
static void setMapValues (Message.Builder builder, String name, Map<?, ?> values)
 
static void setMapValues (Message.Builder builder, String name, Map<?, ?> values)
 

Detailed Description

Unit tests for map fields in proto2 protos.

Definition at line 53 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/MapForProto2Test.java.

Member Function Documentation

◆ assertHasMapValues() [1/2]

static void com.google.protobuf.MapForProto2Test.assertHasMapValues ( Message  message,
String  name,
Map<?, ?>  values 
)
inlinestaticprivate

◆ assertHasMapValues() [2/2]

static void com.google.protobuf.MapForProto2Test.assertHasMapValues ( Message  message,
String  name,
Map<?, ?>  values 
)
inlinestaticprivate

◆ assertMapContainsSetValues() [1/2]

void com.google.protobuf.MapForProto2Test.assertMapContainsSetValues ( TestMapOrBuilder  testMapOrBuilder)
inlineprivate

◆ assertMapContainsSetValues() [2/2]

void com.google.protobuf.MapForProto2Test.assertMapContainsSetValues ( TestMapOrBuilder  testMapOrBuilder)
inlineprivate

◆ assertMapCounts() [1/2]

void com.google.protobuf.MapForProto2Test.assertMapCounts ( int  expectedCount,
TestMapOrBuilder  testMapOrBuilder 
)
inlineprivate

◆ assertMapCounts() [2/2]

void com.google.protobuf.MapForProto2Test.assertMapCounts ( int  expectedCount,
TestMapOrBuilder  testMapOrBuilder 
)
inlineprivate

◆ assertMapsAreImmutable() [1/2]

void com.google.protobuf.MapForProto2Test.assertMapsAreImmutable ( TestMapOrBuilder  testMapOrBuilder)
inlineprivate

◆ assertMapsAreImmutable() [2/2]

void com.google.protobuf.MapForProto2Test.assertMapsAreImmutable ( TestMapOrBuilder  testMapOrBuilder)
inlineprivate

◆ assertMapValuesCleared() [1/2]

void com.google.protobuf.MapForProto2Test.assertMapValuesCleared ( TestMapOrBuilder  testMapOrBuilder)
inlineprivate

◆ assertMapValuesCleared() [2/2]

void com.google.protobuf.MapForProto2Test.assertMapValuesCleared ( TestMapOrBuilder  testMapOrBuilder)
inlineprivate

◆ assertMapValuesSet() [1/2]

void com.google.protobuf.MapForProto2Test.assertMapValuesSet ( TestMapOrBuilder  message)
inlineprivate

◆ assertMapValuesSet() [2/2]

void com.google.protobuf.MapForProto2Test.assertMapValuesSet ( TestMapOrBuilder  message)
inlineprivate

◆ assertMapValuesUpdated() [1/2]

void com.google.protobuf.MapForProto2Test.assertMapValuesUpdated ( TestMap  message)
inlineprivate

◆ assertMapValuesUpdated() [2/2]

void com.google.protobuf.MapForProto2Test.assertMapValuesUpdated ( TestMap  message)
inlineprivate

◆ copyMapValues() [1/2]

void com.google.protobuf.MapForProto2Test.copyMapValues ( TestMap  source,
TestMap.Builder  destination 
)
inlineprivate

◆ copyMapValues() [2/2]

void com.google.protobuf.MapForProto2Test.copyMapValues ( TestMap  source,
TestMap.Builder  destination 
)
inlineprivate

◆ doTestGetOrDefault() [1/2]

void com.google.protobuf.MapForProto2Test.doTestGetOrDefault ( TestMapOrBuilder  testMapOrBuilder)
inline

◆ doTestGetOrDefault() [2/2]

void com.google.protobuf.MapForProto2Test.doTestGetOrDefault ( TestMapOrBuilder  testMapOrBuilder)
inline

◆ doTestGetOrThrow() [1/2]

void com.google.protobuf.MapForProto2Test.doTestGetOrThrow ( TestMapOrBuilder  testMapOrBuilder)
inline

◆ doTestGetOrThrow() [2/2]

void com.google.protobuf.MapForProto2Test.doTestGetOrThrow ( TestMapOrBuilder  testMapOrBuilder)
inline

◆ f() [1/2]

static FieldDescriptor com.google.protobuf.MapForProto2Test.f ( String  name)
inlinestaticprivate

◆ f() [2/2]

static FieldDescriptor com.google.protobuf.MapForProto2Test.f ( String  name)
inlinestaticprivate

◆ getFieldValue() [1/2]

static Object com.google.protobuf.MapForProto2Test.getFieldValue ( Message  mapEntry,
String  name 
)
inlinestaticprivate

◆ getFieldValue() [2/2]

static Object com.google.protobuf.MapForProto2Test.getFieldValue ( Message  mapEntry,
String  name 
)
inlinestaticprivate

◆ mapForValues() [1/2]

static <K, V> Map<K, V> com.google.protobuf.MapForProto2Test.mapForValues ( key1,
value1,
key2,
value2 
)
inlinestaticprivate

◆ mapForValues() [2/2]

static <K, V> Map<K, V> com.google.protobuf.MapForProto2Test.mapForValues ( key1,
value1,
key2,
value2 
)
inlinestaticprivate

◆ newMap() [1/4]

static <K, V> Map<K, V> com.google.protobuf.MapForProto2Test.newMap ( key1,
value1 
)
inlinestaticprivate

◆ newMap() [2/4]

static <K, V> Map<K, V> com.google.protobuf.MapForProto2Test.newMap ( key1,
value1 
)
inlinestaticprivate

◆ newMap() [3/4]

static <K, V> Map<K, V> com.google.protobuf.MapForProto2Test.newMap ( key1,
value1,
key2,
value2 
)
inlinestaticprivate

◆ newMap() [4/4]

static <K, V> Map<K, V> com.google.protobuf.MapForProto2Test.newMap ( key1,
value1,
key2,
value2 
)
inlinestaticprivate

◆ newMapEntry() [1/2]

static <K, V> Message com.google.protobuf.MapForProto2Test.newMapEntry ( Message.Builder  builder,
String  name,
key,
value 
)
inlinestaticprivate

◆ newMapEntry() [2/2]

static <K, V> Message com.google.protobuf.MapForProto2Test.newMapEntry ( Message.Builder  builder,
String  name,
key,
value 
)
inlinestaticprivate

◆ setFieldValue() [1/2]

static Message.Builder com.google.protobuf.MapForProto2Test.setFieldValue ( Message.Builder  mapEntry,
String  name,
Object  value 
)
inlinestaticprivate

◆ setFieldValue() [2/2]

static Message.Builder com.google.protobuf.MapForProto2Test.setFieldValue ( Message.Builder  mapEntry,
String  name,
Object  value 
)
inlinestaticprivate

◆ setMapValues() [1/2]

static void com.google.protobuf.MapForProto2Test.setMapValues ( Message.Builder  builder,
String  name,
Map<?, ?>  values 
)
inlinestaticprivate

◆ setMapValues() [2/2]

static void com.google.protobuf.MapForProto2Test.setMapValues ( Message.Builder  builder,
String  name,
Map<?, ?>  values 
)
inlinestaticprivate

◆ setMapValuesUsingAccessors() [1/2]

void com.google.protobuf.MapForProto2Test.setMapValuesUsingAccessors ( TestMap.Builder  builder)
inlineprivate

◆ setMapValuesUsingAccessors() [2/2]

void com.google.protobuf.MapForProto2Test.setMapValuesUsingAccessors ( TestMap.Builder  builder)
inlineprivate

◆ setMapValuesUsingMutableMap() [1/2]

void com.google.protobuf.MapForProto2Test.setMapValuesUsingMutableMap ( TestMap.Builder  builder)
inlineprivate

◆ setMapValuesUsingMutableMap() [2/2]

void com.google.protobuf.MapForProto2Test.setMapValuesUsingMutableMap ( TestMap.Builder  builder)
inlineprivate

◆ testContains() [1/2]

void com.google.protobuf.MapForProto2Test.testContains ( )
inline

◆ testContains() [2/2]

void com.google.protobuf.MapForProto2Test.testContains ( )
inline

◆ testCount() [1/2]

void com.google.protobuf.MapForProto2Test.testCount ( )
inline

◆ testCount() [2/2]

void com.google.protobuf.MapForProto2Test.testCount ( )
inline

◆ testDynamicMessage() [1/2]

void com.google.protobuf.MapForProto2Test.testDynamicMessage ( ) throws Exception
inline

◆ testDynamicMessage() [2/2]

void com.google.protobuf.MapForProto2Test.testDynamicMessage ( ) throws Exception
inline

◆ testDynamicMessageUnsetKeyAndValue() [1/2]

void com.google.protobuf.MapForProto2Test.testDynamicMessageUnsetKeyAndValue ( ) throws Exception
inline

◆ testDynamicMessageUnsetKeyAndValue() [2/2]

void com.google.protobuf.MapForProto2Test.testDynamicMessageUnsetKeyAndValue ( ) throws Exception
inline

◆ testEqualsAndHashCode() [1/2]

void com.google.protobuf.MapForProto2Test.testEqualsAndHashCode ( ) throws Exception
inline

◆ testEqualsAndHashCode() [2/2]

void com.google.protobuf.MapForProto2Test.testEqualsAndHashCode ( ) throws Exception
inline

◆ testGetMap() [1/2]

void com.google.protobuf.MapForProto2Test.testGetMap ( )
inline

◆ testGetMap() [2/2]

void com.google.protobuf.MapForProto2Test.testGetMap ( )
inline

◆ testGetMapIsImmutable() [1/2]

void com.google.protobuf.MapForProto2Test.testGetMapIsImmutable ( )
inline

◆ testGetMapIsImmutable() [2/2]

void com.google.protobuf.MapForProto2Test.testGetMapIsImmutable ( )
inline

◆ testGetOrDefault() [1/2]

void com.google.protobuf.MapForProto2Test.testGetOrDefault ( )
inline

◆ testGetOrDefault() [2/2]

void com.google.protobuf.MapForProto2Test.testGetOrDefault ( )
inline

◆ testGetOrThrow() [1/2]

void com.google.protobuf.MapForProto2Test.testGetOrThrow ( )
inline

◆ testGetOrThrow() [2/2]

void com.google.protobuf.MapForProto2Test.testGetOrThrow ( )
inline

◆ testGettersAndSetters() [1/2]

void com.google.protobuf.MapForProto2Test.testGettersAndSetters ( ) throws Exception
inline

◆ testGettersAndSetters() [2/2]

void com.google.protobuf.MapForProto2Test.testGettersAndSetters ( ) throws Exception
inline

◆ testIterationOrder() [1/2]

void com.google.protobuf.MapForProto2Test.testIterationOrder ( ) throws Exception
inline

◆ testIterationOrder() [2/2]

void com.google.protobuf.MapForProto2Test.testIterationOrder ( ) throws Exception
inline

◆ testMapInitializationOrder() [1/2]

void com.google.protobuf.MapForProto2Test.testMapInitializationOrder ( ) throws Exception
inline

◆ testMapInitializationOrder() [2/2]

void com.google.protobuf.MapForProto2Test.testMapInitializationOrder ( ) throws Exception
inline

◆ testMergeFrom() [1/2]

void com.google.protobuf.MapForProto2Test.testMergeFrom ( ) throws Exception
inline

◆ testMergeFrom() [2/2]

void com.google.protobuf.MapForProto2Test.testMergeFrom ( ) throws Exception
inline

◆ testMutableMapLifecycle() [1/2]

void com.google.protobuf.MapForProto2Test.testMutableMapLifecycle ( )
inline

◆ testMutableMapLifecycle() [2/2]

void com.google.protobuf.MapForProto2Test.testMutableMapLifecycle ( )
inline

◆ testMutableMapLifecycle_collections() [1/2]

void com.google.protobuf.MapForProto2Test.testMutableMapLifecycle_collections ( )
inline

◆ testMutableMapLifecycle_collections() [2/2]

void com.google.protobuf.MapForProto2Test.testMutableMapLifecycle_collections ( )
inline

◆ testParseError() [1/2]

void com.google.protobuf.MapForProto2Test.testParseError ( ) throws Exception
inline

◆ testParseError() [2/2]

void com.google.protobuf.MapForProto2Test.testParseError ( ) throws Exception
inline

◆ testPut() [1/2]

void com.google.protobuf.MapForProto2Test.testPut ( )
inline

◆ testPut() [2/2]

void com.google.protobuf.MapForProto2Test.testPut ( )
inline

◆ testPutAll() [1/2]

void com.google.protobuf.MapForProto2Test.testPutAll ( ) throws Exception
inline

◆ testPutAll() [2/2]

void com.google.protobuf.MapForProto2Test.testPutAll ( ) throws Exception
inline

◆ testPutAllWithNullStringKey()

void com.google.protobuf.MapForProto2Test.testPutAllWithNullStringKey ( ) throws Exception
inline

◆ testPutAllWithNullStringValue()

void com.google.protobuf.MapForProto2Test.testPutAllWithNullStringValue ( ) throws Exception
inline

◆ testPutChecksNullKey()

void com.google.protobuf.MapForProto2Test.testPutChecksNullKey ( ) throws Exception
inline

◆ testPutChecksNullKeysAndValues()

void com.google.protobuf.MapForProto2Test.testPutChecksNullKeysAndValues ( ) throws Exception
inline

◆ testPutChecksNullValues()

void com.google.protobuf.MapForProto2Test.testPutChecksNullValues ( ) throws Exception
inline

◆ testPutNullStringValue()

void com.google.protobuf.MapForProto2Test.testPutNullStringValue ( ) throws Exception
inline

◆ testRecursiveMap() [1/2]

void com.google.protobuf.MapForProto2Test.testRecursiveMap ( ) throws Exception
inline

◆ testRecursiveMap() [2/2]

void com.google.protobuf.MapForProto2Test.testRecursiveMap ( ) throws Exception
inline

◆ testReflectionApi() [1/2]

void com.google.protobuf.MapForProto2Test.testReflectionApi ( ) throws Exception
inline

◆ testReflectionApi() [2/2]

void com.google.protobuf.MapForProto2Test.testReflectionApi ( ) throws Exception
inline

◆ testReflectionEqualsAndHashCode() [1/2]

void com.google.protobuf.MapForProto2Test.testReflectionEqualsAndHashCode ( ) throws Exception
inline

◆ testReflectionEqualsAndHashCode() [2/2]

void com.google.protobuf.MapForProto2Test.testReflectionEqualsAndHashCode ( ) throws Exception
inline

◆ testRemove() [1/2]

void com.google.protobuf.MapForProto2Test.testRemove ( )
inline

◆ testRemove() [2/2]

void com.google.protobuf.MapForProto2Test.testRemove ( )
inline

◆ testRequiredMessage() [1/2]

void com.google.protobuf.MapForProto2Test.testRequiredMessage ( ) throws Exception
inline

◆ testRequiredMessage() [2/2]

void com.google.protobuf.MapForProto2Test.testRequiredMessage ( ) throws Exception
inline

◆ testReservedWordsFieldNames() [1/2]

void com.google.protobuf.MapForProto2Test.testReservedWordsFieldNames ( )
inline

◆ testReservedWordsFieldNames() [2/2]

void com.google.protobuf.MapForProto2Test.testReservedWordsFieldNames ( )
inline

◆ testSerializeAndParse() [1/2]

void com.google.protobuf.MapForProto2Test.testSerializeAndParse ( ) throws Exception
inline

◆ testSerializeAndParse() [2/2]

void com.google.protobuf.MapForProto2Test.testSerializeAndParse ( ) throws Exception
inline

◆ testSetMapValues() [1/2]

void com.google.protobuf.MapForProto2Test.testSetMapValues ( )
inline

◆ testSetMapValues() [2/2]

void com.google.protobuf.MapForProto2Test.testSetMapValues ( )
inline

◆ testTextFormat() [1/2]

void com.google.protobuf.MapForProto2Test.testTextFormat ( ) throws Exception
inline

◆ testTextFormat() [2/2]

void com.google.protobuf.MapForProto2Test.testTextFormat ( ) throws Exception
inline

◆ testUnknownEnumValues() [1/2]

void com.google.protobuf.MapForProto2Test.testUnknownEnumValues ( ) throws Exception
inline

◆ testUnknownEnumValues() [2/2]

void com.google.protobuf.MapForProto2Test.testUnknownEnumValues ( ) throws Exception
inline

◆ testUpdateMapValues() [1/2]

void com.google.protobuf.MapForProto2Test.testUpdateMapValues ( )
inline

◆ testUpdateMapValues() [2/2]

void com.google.protobuf.MapForProto2Test.testUpdateMapValues ( )
inline

◆ tryParseTestMap() [1/2]

TestMap com.google.protobuf.MapForProto2Test.tryParseTestMap ( BizarroTestMap  bizarroMap) throws IOException
inlineprivate

◆ tryParseTestMap() [2/2]

TestMap com.google.protobuf.MapForProto2Test.tryParseTestMap ( BizarroTestMap  bizarroMap) throws IOException
inlineprivate

◆ updateMapValuesUsingAccessors() [1/2]

void com.google.protobuf.MapForProto2Test.updateMapValuesUsingAccessors ( TestMap.Builder  builder)
inlineprivate

◆ updateMapValuesUsingAccessors() [2/2]

void com.google.protobuf.MapForProto2Test.updateMapValuesUsingAccessors ( TestMap.Builder  builder)
inlineprivate

◆ updateMapValuesUsingMutableMap() [1/2]

void com.google.protobuf.MapForProto2Test.updateMapValuesUsingMutableMap ( TestMap.Builder  builder)
inlineprivate

◆ updateMapValuesUsingMutableMap() [2/2]

void com.google.protobuf.MapForProto2Test.updateMapValuesUsingMutableMap ( TestMap.Builder  builder)
inlineprivate

The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:06