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

Public Member Functions

void doTestGetOrDefault (TestMapOrBuilder testMapOrBuilder)
 
void doTestGetOrThrow (TestMapOrBuilder testMapOrBuilder)
 
void testContains ()
 
void testCount ()
 
void testEqualsAndHashCode () throws Exception
 
void testGetMap ()
 
void testGetMapIsImmutable ()
 
void testGetOrDefault ()
 
void testGetOrThrow ()
 
void testGettersAndSetters () throws Exception
 
void testIterationOrder () throws Exception
 
void testMergeFrom () throws Exception
 
void testMutableMapLifecycle ()
 
void testParseError () throws Exception
 
void testPut ()
 
void testPutAll () throws Exception
 
void testPutChecksNullKeysAndValues () throws Exception
 
void testRemove ()
 
void testSanityCopyOnWrite () throws InvalidProtocolBufferException
 
void testSerializeAndParse () throws Exception
 
void testSetMapValues ()
 
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 (TestMap message)
 
void assertMapValuesUpdated (TestMap message)
 
void copyMapValues (TestMap source, TestMap.Builder destination)
 
void setMapValues (TestMap.Builder builder)
 
TestMap tryParseTestMap (BizarroTestMap bizarroMap) throws IOException
 
void updateMapValues (TestMap.Builder builder)
 

Static Private Member Functions

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)
 

Detailed Description

Unit tests for map fields.

Definition at line 47 of file MapForProto2LiteTest.java.

Member Function Documentation

◆ assertMapContainsSetValues()

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

Definition at line 529 of file MapForProto2LiteTest.java.

◆ assertMapCounts()

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

Definition at line 580 of file MapForProto2LiteTest.java.

◆ assertMapsAreImmutable()

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

Definition at line 228 of file MapForProto2LiteTest.java.

◆ assertMapValuesCleared()

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

Definition at line 186 of file MapForProto2LiteTest.java.

◆ assertMapValuesSet()

void com.google.protobuf.MapForProto2LiteTest.assertMapValuesSet ( TestMap  message)
inlineprivate

Definition at line 88 of file MapForProto2LiteTest.java.

◆ assertMapValuesUpdated()

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

Definition at line 154 of file MapForProto2LiteTest.java.

◆ copyMapValues()

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

Definition at line 78 of file MapForProto2LiteTest.java.

◆ doTestGetOrDefault()

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

Definition at line 597 of file MapForProto2LiteTest.java.

◆ doTestGetOrThrow()

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

Definition at line 634 of file MapForProto2LiteTest.java.

◆ newMap() [1/2]

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

Definition at line 499 of file MapForProto2LiteTest.java.

◆ newMap() [2/2]

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

Definition at line 505 of file MapForProto2LiteTest.java.

◆ setMapValues()

void com.google.protobuf.MapForProto2LiteTest.setMapValues ( TestMap.Builder  builder)
inlineprivate

Definition at line 49 of file MapForProto2LiteTest.java.

◆ testContains()

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

Definition at line 522 of file MapForProto2LiteTest.java.

◆ testCount()

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

Definition at line 561 of file MapForProto2LiteTest.java.

◆ testEqualsAndHashCode()

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

Definition at line 437 of file MapForProto2LiteTest.java.

◆ testGetMap()

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

Definition at line 512 of file MapForProto2LiteTest.java.

◆ testGetMapIsImmutable()

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

Definition at line 218 of file MapForProto2LiteTest.java.

◆ testGetOrDefault()

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

Definition at line 589 of file MapForProto2LiteTest.java.

◆ testGetOrThrow()

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

Definition at line 626 of file MapForProto2LiteTest.java.

◆ testGettersAndSetters()

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

Definition at line 291 of file MapForProto2LiteTest.java.

◆ testIterationOrder()

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

Definition at line 489 of file MapForProto2LiteTest.java.

◆ testMergeFrom()

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

Definition at line 427 of file MapForProto2LiteTest.java.

◆ testMutableMapLifecycle()

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

Definition at line 255 of file MapForProto2LiteTest.java.

◆ testParseError()

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

Definition at line 394 of file MapForProto2LiteTest.java.

◆ testPut()

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

Definition at line 695 of file MapForProto2LiteTest.java.

◆ testPutAll()

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

Definition at line 313 of file MapForProto2LiteTest.java.

◆ testPutChecksNullKeysAndValues()

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

Definition at line 324 of file MapForProto2LiteTest.java.

◆ testRemove()

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

Definition at line 736 of file MapForProto2LiteTest.java.

◆ testSanityCopyOnWrite()

void com.google.protobuf.MapForProto2LiteTest.testSanityCopyOnWrite ( ) throws InvalidProtocolBufferException
inline

Definition at line 201 of file MapForProto2LiteTest.java.

◆ testSerializeAndParse()

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

Definition at line 363 of file MapForProto2LiteTest.java.

◆ testSetMapValues()

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

Definition at line 71 of file MapForProto2LiteTest.java.

◆ testUnknownEnumValues()

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

Definition at line 468 of file MapForProto2LiteTest.java.

◆ testUpdateMapValues()

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

Definition at line 142 of file MapForProto2LiteTest.java.

◆ tryParseTestMap()

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

Definition at line 386 of file MapForProto2LiteTest.java.

◆ updateMapValues()

void com.google.protobuf.MapForProto2LiteTest.updateMapValues ( TestMap.Builder  builder)
inlineprivate

Definition at line 120 of file MapForProto2LiteTest.java.


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


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