Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
com.google.protobuf.MapLiteTest Class Reference
Inheritance diagram for com.google.protobuf.MapLiteTest:
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 testMap_withNulls ()
 
void testMapFieldClear ()
 
void testMergeFrom () throws Exception
 
void testMutableMapLifecycle ()
 
void testParseError () throws Exception
 
void testPut ()
 
void testPutAll () throws Exception
 
void testPutAllForUnknownEnumValues () throws Exception
 
void testPutChecksNullKeysAndValues () throws Exception
 
void testPutForUnknownEnumValues () 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 48 of file MapLiteTest.java.

Member Function Documentation

◆ assertMapContainsSetValues()

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

Definition at line 583 of file MapLiteTest.java.

◆ assertMapCounts()

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

Definition at line 634 of file MapLiteTest.java.

◆ assertMapsAreImmutable()

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

Definition at line 234 of file MapLiteTest.java.

◆ assertMapValuesCleared()

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

Definition at line 193 of file MapLiteTest.java.

◆ assertMapValuesSet()

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

Definition at line 95 of file MapLiteTest.java.

◆ assertMapValuesUpdated()

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

Definition at line 161 of file MapLiteTest.java.

◆ copyMapValues()

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

Definition at line 85 of file MapLiteTest.java.

◆ doTestGetOrDefault()

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

Definition at line 651 of file MapLiteTest.java.

◆ doTestGetOrThrow()

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

Definition at line 693 of file MapLiteTest.java.

◆ newMap() [1/2]

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

Definition at line 845 of file MapLiteTest.java.

◆ newMap() [2/2]

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

Definition at line 851 of file MapLiteTest.java.

◆ setMapValues()

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

Definition at line 50 of file MapLiteTest.java.

◆ testContains()

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

Definition at line 576 of file MapLiteTest.java.

◆ testCount()

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

Definition at line 615 of file MapLiteTest.java.

◆ testEqualsAndHashCode()

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

Definition at line 481 of file MapLiteTest.java.

◆ testGetMap()

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

Definition at line 565 of file MapLiteTest.java.

◆ testGetMapIsImmutable()

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

Definition at line 224 of file MapLiteTest.java.

◆ testGetOrDefault()

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

Definition at line 643 of file MapLiteTest.java.

◆ testGetOrThrow()

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

Definition at line 685 of file MapLiteTest.java.

◆ testGettersAndSetters()

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

Definition at line 303 of file MapLiteTest.java.

◆ testIterationOrder()

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

Definition at line 556 of file MapLiteTest.java.

◆ testMap_withNulls()

void com.google.protobuf.MapLiteTest.testMap_withNulls ( )
inline

Definition at line 858 of file MapLiteTest.java.

◆ testMapFieldClear()

void com.google.protobuf.MapLiteTest.testMapFieldClear ( )
inline

Definition at line 261 of file MapLiteTest.java.

◆ testMergeFrom()

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

Definition at line 471 of file MapLiteTest.java.

◆ testMutableMapLifecycle()

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

Definition at line 267 of file MapLiteTest.java.

◆ testParseError()

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

Definition at line 438 of file MapLiteTest.java.

◆ testPut()

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

Definition at line 763 of file MapLiteTest.java.

◆ testPutAll()

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

Definition at line 325 of file MapLiteTest.java.

◆ testPutAllForUnknownEnumValues()

void com.google.protobuf.MapLiteTest.testPutAllForUnknownEnumValues ( ) throws Exception
inline

Definition at line 336 of file MapLiteTest.java.

◆ testPutChecksNullKeysAndValues()

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

Definition at line 368 of file MapLiteTest.java.

◆ testPutForUnknownEnumValues()

void com.google.protobuf.MapLiteTest.testPutForUnknownEnumValues ( ) throws Exception
inline

Definition at line 354 of file MapLiteTest.java.

◆ testRemove()

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

Definition at line 804 of file MapLiteTest.java.

◆ testSanityCopyOnWrite()

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

Definition at line 208 of file MapLiteTest.java.

◆ testSerializeAndParse()

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

Definition at line 407 of file MapLiteTest.java.

◆ testSetMapValues()

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

Definition at line 72 of file MapLiteTest.java.

◆ testUnknownEnumValues()

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

Definition at line 519 of file MapLiteTest.java.

◆ testUpdateMapValues()

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

Definition at line 149 of file MapLiteTest.java.

◆ tryParseTestMap()

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

Definition at line 430 of file MapLiteTest.java.

◆ updateMapValues()

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

Definition at line 127 of file MapLiteTest.java.


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


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