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 doTestGetOrThrow (TestMapOrBuilder testMapOrBuilder)
 
void testContains ()
 
void testCount ()
 
void testDynamicMessage () throws Exception
 
void testDynamicMessageUnsetKeyAndValue () throws Exception
 
void testEqualsAndHashCode () throws Exception
 
void testGetMap ()
 
void testGetMapIsImmutable ()
 
void testGetOrDefault ()
 
void testGetOrThrow ()
 
void testGettersAndSetters () throws Exception
 
void testIterationOrder () throws Exception
 
void testMapInitializationOrder () throws Exception
 
void testMergeFrom () throws Exception
 
void testMutableMapLifecycle ()
 
void testMutableMapLifecycle_collections ()
 
void testParseError () throws Exception
 
void testPut ()
 
void testPutAll () throws Exception
 
void testPutChecksNullKeysAndValues () throws Exception
 
void testRecursiveMap () throws Exception
 
void testReflectionApi () throws Exception
 
void testReflectionEqualsAndHashCode () throws Exception
 
void testRemove ()
 
void testRequiredMessage () throws Exception
 
void testReservedWordsFieldNames ()
 
void testSerializeAndParse () throws Exception
 
void testSetMapValues ()
 
void testTextFormat () throws Exception
 
void testUnknownEnumValues () throws Exception
 
void testUpdateMapValues ()
 

Private Member Functions

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

Static Private Member Functions

static void assertHasMapValues (Message message, String name, Map<?, ?> values)
 
static FieldDescriptor f (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 > newMap (K key1, V value1)
 
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 Message.Builder setFieldValue (Message.Builder mapEntry, String name, Object value)
 
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 MapForProto2Test.java.

Member Function Documentation

◆ assertHasMapValues()

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

Definition at line 633 of file MapForProto2Test.java.

◆ assertMapContainsSetValues()

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

Definition at line 898 of file MapForProto2Test.java.

◆ assertMapCounts()

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

Definition at line 949 of file MapForProto2Test.java.

◆ assertMapsAreImmutable()

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

Definition at line 295 of file MapForProto2Test.java.

◆ assertMapValuesCleared()

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

Definition at line 270 of file MapForProto2Test.java.

◆ assertMapValuesSet()

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

Definition at line 130 of file MapForProto2Test.java.

◆ assertMapValuesUpdated()

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

Definition at line 238 of file MapForProto2Test.java.

◆ copyMapValues()

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

Definition at line 120 of file MapForProto2Test.java.

◆ doTestGetOrDefault()

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

Definition at line 966 of file MapForProto2Test.java.

◆ doTestGetOrThrow()

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

Definition at line 1003 of file MapForProto2Test.java.

◆ f()

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

Definition at line 617 of file MapForProto2Test.java.

◆ getFieldValue()

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

Definition at line 621 of file MapForProto2Test.java.

◆ mapForValues()

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

Definition at line 671 of file MapForProto2Test.java.

◆ newMap() [1/2]

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

Definition at line 424 of file MapForProto2Test.java.

◆ newMap() [2/2]

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

Definition at line 430 of file MapForProto2Test.java.

◆ newMapEntry()

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

Definition at line 652 of file MapForProto2Test.java.

◆ setFieldValue()

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

Definition at line 626 of file MapForProto2Test.java.

◆ setMapValues()

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

Definition at line 662 of file MapForProto2Test.java.

◆ setMapValuesUsingAccessors()

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

Definition at line 84 of file MapForProto2Test.java.

◆ setMapValuesUsingMutableMap()

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

Definition at line 55 of file MapForProto2Test.java.

◆ testContains()

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

Definition at line 891 of file MapForProto2Test.java.

◆ testCount()

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

Definition at line 930 of file MapForProto2Test.java.

◆ testDynamicMessage()

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

Definition at line 778 of file MapForProto2Test.java.

◆ testDynamicMessageUnsetKeyAndValue()

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

Definition at line 793 of file MapForProto2Test.java.

◆ testEqualsAndHashCode()

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

Definition at line 585 of file MapForProto2Test.java.

◆ testGetMap()

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

Definition at line 1170 of file MapForProto2Test.java.

◆ testGetMapIsImmutable()

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

Definition at line 285 of file MapForProto2Test.java.

◆ testGetOrDefault()

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

Definition at line 958 of file MapForProto2Test.java.

◆ testGetOrThrow()

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

Definition at line 995 of file MapForProto2Test.java.

◆ testGettersAndSetters()

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

Definition at line 437 of file MapForProto2Test.java.

◆ testIterationOrder()

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

Definition at line 881 of file MapForProto2Test.java.

◆ testMapInitializationOrder()

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

Definition at line 1147 of file MapForProto2Test.java.

◆ testMergeFrom()

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

Definition at line 575 of file MapForProto2Test.java.

◆ testMutableMapLifecycle()

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

Definition at line 314 of file MapForProto2Test.java.

◆ testMutableMapLifecycle_collections()

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

Definition at line 378 of file MapForProto2Test.java.

◆ testParseError()

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

Definition at line 542 of file MapForProto2Test.java.

◆ testPut()

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

Definition at line 1064 of file MapForProto2Test.java.

◆ testPutAll()

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

Definition at line 459 of file MapForProto2Test.java.

◆ testPutChecksNullKeysAndValues()

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

Definition at line 472 of file MapForProto2Test.java.

◆ testRecursiveMap()

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

Definition at line 870 of file MapForProto2Test.java.

◆ testReflectionApi()

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

Definition at line 678 of file MapForProto2Test.java.

◆ testReflectionEqualsAndHashCode()

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

Definition at line 808 of file MapForProto2Test.java.

◆ testRemove()

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

Definition at line 1105 of file MapForProto2Test.java.

◆ testRequiredMessage()

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

Definition at line 859 of file MapForProto2Test.java.

◆ testReservedWordsFieldNames()

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

Definition at line 1165 of file MapForProto2Test.java.

◆ testSerializeAndParse()

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

Definition at line 511 of file MapForProto2Test.java.

◆ testSetMapValues()

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

Definition at line 106 of file MapForProto2Test.java.

◆ testTextFormat()

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

Definition at line 764 of file MapForProto2Test.java.

◆ testUnknownEnumValues()

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

Definition at line 839 of file MapForProto2Test.java.

◆ testUpdateMapValues()

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

Definition at line 212 of file MapForProto2Test.java.

◆ tryParseTestMap()

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

Definition at line 534 of file MapForProto2Test.java.

◆ updateMapValuesUsingAccessors()

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

Definition at line 190 of file MapForProto2Test.java.

◆ updateMapValuesUsingMutableMap()

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

Definition at line 162 of file MapForProto2Test.java.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:07