|
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) |
|
Unit tests for map fields in proto2 protos.
Definition at line 53 of file MapForProto2Test.java.
◆ assertHasMapValues()
static void com.google.protobuf.MapForProto2Test.assertHasMapValues |
( |
Message |
message, |
|
|
String |
name, |
|
|
Map<?, ?> |
values |
|
) |
| |
|
inlinestaticprivate |
◆ assertMapContainsSetValues()
void com.google.protobuf.MapForProto2Test.assertMapContainsSetValues |
( |
TestMapOrBuilder |
testMapOrBuilder | ) |
|
|
inlineprivate |
◆ assertMapCounts()
void com.google.protobuf.MapForProto2Test.assertMapCounts |
( |
int |
expectedCount, |
|
|
TestMapOrBuilder |
testMapOrBuilder |
|
) |
| |
|
inlineprivate |
◆ assertMapsAreImmutable()
void com.google.protobuf.MapForProto2Test.assertMapsAreImmutable |
( |
TestMapOrBuilder |
testMapOrBuilder | ) |
|
|
inlineprivate |
◆ assertMapValuesCleared()
void com.google.protobuf.MapForProto2Test.assertMapValuesCleared |
( |
TestMapOrBuilder |
testMapOrBuilder | ) |
|
|
inlineprivate |
◆ assertMapValuesSet()
void com.google.protobuf.MapForProto2Test.assertMapValuesSet |
( |
TestMapOrBuilder |
message | ) |
|
|
inlineprivate |
◆ assertMapValuesUpdated()
void com.google.protobuf.MapForProto2Test.assertMapValuesUpdated |
( |
TestMap |
message | ) |
|
|
inlineprivate |
◆ copyMapValues()
void com.google.protobuf.MapForProto2Test.copyMapValues |
( |
TestMap |
source, |
|
|
TestMap.Builder |
destination |
|
) |
| |
|
inlineprivate |
◆ doTestGetOrDefault()
void com.google.protobuf.MapForProto2Test.doTestGetOrDefault |
( |
TestMapOrBuilder |
testMapOrBuilder | ) |
|
|
inline |
◆ doTestGetOrThrow()
void com.google.protobuf.MapForProto2Test.doTestGetOrThrow |
( |
TestMapOrBuilder |
testMapOrBuilder | ) |
|
|
inline |
◆ f()
static FieldDescriptor com.google.protobuf.MapForProto2Test.f |
( |
String |
name | ) |
|
|
inlinestaticprivate |
◆ getFieldValue()
static Object com.google.protobuf.MapForProto2Test.getFieldValue |
( |
Message |
mapEntry, |
|
|
String |
name |
|
) |
| |
|
inlinestaticprivate |
◆ mapForValues()
static <K, V> Map<K, V> com.google.protobuf.MapForProto2Test.mapForValues |
( |
K |
key1, |
|
|
V |
value1, |
|
|
K |
key2, |
|
|
V |
value2 |
|
) |
| |
|
inlinestaticprivate |
◆ newMap() [1/2]
static <K, V> Map<K, V> com.google.protobuf.MapForProto2Test.newMap |
( |
K |
key1, |
|
|
V |
value1 |
|
) |
| |
|
inlinestaticprivate |
◆ newMap() [2/2]
static <K, V> Map<K, V> com.google.protobuf.MapForProto2Test.newMap |
( |
K |
key1, |
|
|
V |
value1, |
|
|
K |
key2, |
|
|
V |
value2 |
|
) |
| |
|
inlinestaticprivate |
◆ newMapEntry()
static <K, V> Message com.google.protobuf.MapForProto2Test.newMapEntry |
( |
Message.Builder |
builder, |
|
|
String |
name, |
|
|
K |
key, |
|
|
V |
value |
|
) |
| |
|
inlinestaticprivate |
◆ setFieldValue()
◆ setMapValues()
static void com.google.protobuf.MapForProto2Test.setMapValues |
( |
Message.Builder |
builder, |
|
|
String |
name, |
|
|
Map<?, ?> |
values |
|
) |
| |
|
inlinestaticprivate |
◆ setMapValuesUsingAccessors()
void com.google.protobuf.MapForProto2Test.setMapValuesUsingAccessors |
( |
TestMap.Builder |
builder | ) |
|
|
inlineprivate |
◆ setMapValuesUsingMutableMap()
void com.google.protobuf.MapForProto2Test.setMapValuesUsingMutableMap |
( |
TestMap.Builder |
builder | ) |
|
|
inlineprivate |
◆ testContains()
void com.google.protobuf.MapForProto2Test.testContains |
( |
| ) |
|
|
inline |
◆ testCount()
void com.google.protobuf.MapForProto2Test.testCount |
( |
| ) |
|
|
inline |
◆ testDynamicMessage()
void com.google.protobuf.MapForProto2Test.testDynamicMessage |
( |
| ) |
throws Exception |
|
inline |
◆ testDynamicMessageUnsetKeyAndValue()
void com.google.protobuf.MapForProto2Test.testDynamicMessageUnsetKeyAndValue |
( |
| ) |
throws Exception |
|
inline |
◆ testEqualsAndHashCode()
void com.google.protobuf.MapForProto2Test.testEqualsAndHashCode |
( |
| ) |
throws Exception |
|
inline |
◆ testGetMap()
void com.google.protobuf.MapForProto2Test.testGetMap |
( |
| ) |
|
|
inline |
◆ testGetMapIsImmutable()
void com.google.protobuf.MapForProto2Test.testGetMapIsImmutable |
( |
| ) |
|
|
inline |
◆ testGetOrDefault()
void com.google.protobuf.MapForProto2Test.testGetOrDefault |
( |
| ) |
|
|
inline |
◆ testGetOrThrow()
void com.google.protobuf.MapForProto2Test.testGetOrThrow |
( |
| ) |
|
|
inline |
◆ testGettersAndSetters()
void com.google.protobuf.MapForProto2Test.testGettersAndSetters |
( |
| ) |
throws Exception |
|
inline |
◆ testIterationOrder()
void com.google.protobuf.MapForProto2Test.testIterationOrder |
( |
| ) |
throws Exception |
|
inline |
◆ testMapInitializationOrder()
void com.google.protobuf.MapForProto2Test.testMapInitializationOrder |
( |
| ) |
throws Exception |
|
inline |
◆ testMergeFrom()
void com.google.protobuf.MapForProto2Test.testMergeFrom |
( |
| ) |
throws Exception |
|
inline |
◆ testMutableMapLifecycle()
void com.google.protobuf.MapForProto2Test.testMutableMapLifecycle |
( |
| ) |
|
|
inline |
◆ testMutableMapLifecycle_collections()
void com.google.protobuf.MapForProto2Test.testMutableMapLifecycle_collections |
( |
| ) |
|
|
inline |
◆ testParseError()
void com.google.protobuf.MapForProto2Test.testParseError |
( |
| ) |
throws Exception |
|
inline |
◆ testPut()
void com.google.protobuf.MapForProto2Test.testPut |
( |
| ) |
|
|
inline |
◆ testPutAll()
void com.google.protobuf.MapForProto2Test.testPutAll |
( |
| ) |
throws Exception |
|
inline |
◆ testPutChecksNullKeysAndValues()
void com.google.protobuf.MapForProto2Test.testPutChecksNullKeysAndValues |
( |
| ) |
throws Exception |
|
inline |
◆ testRecursiveMap()
void com.google.protobuf.MapForProto2Test.testRecursiveMap |
( |
| ) |
throws Exception |
|
inline |
◆ testReflectionApi()
void com.google.protobuf.MapForProto2Test.testReflectionApi |
( |
| ) |
throws Exception |
|
inline |
◆ testReflectionEqualsAndHashCode()
void com.google.protobuf.MapForProto2Test.testReflectionEqualsAndHashCode |
( |
| ) |
throws Exception |
|
inline |
◆ testRemove()
void com.google.protobuf.MapForProto2Test.testRemove |
( |
| ) |
|
|
inline |
◆ testRequiredMessage()
void com.google.protobuf.MapForProto2Test.testRequiredMessage |
( |
| ) |
throws Exception |
|
inline |
◆ testReservedWordsFieldNames()
void com.google.protobuf.MapForProto2Test.testReservedWordsFieldNames |
( |
| ) |
|
|
inline |
◆ testSerializeAndParse()
void com.google.protobuf.MapForProto2Test.testSerializeAndParse |
( |
| ) |
throws Exception |
|
inline |
◆ testSetMapValues()
void com.google.protobuf.MapForProto2Test.testSetMapValues |
( |
| ) |
|
|
inline |
◆ testTextFormat()
void com.google.protobuf.MapForProto2Test.testTextFormat |
( |
| ) |
throws Exception |
|
inline |
◆ testUnknownEnumValues()
void com.google.protobuf.MapForProto2Test.testUnknownEnumValues |
( |
| ) |
throws Exception |
|
inline |
◆ testUpdateMapValues()
void com.google.protobuf.MapForProto2Test.testUpdateMapValues |
( |
| ) |
|
|
inline |
◆ tryParseTestMap()
TestMap com.google.protobuf.MapForProto2Test.tryParseTestMap |
( |
BizarroTestMap |
bizarroMap | ) |
throws IOException |
|
inlineprivate |
◆ updateMapValuesUsingAccessors()
void com.google.protobuf.MapForProto2Test.updateMapValuesUsingAccessors |
( |
TestMap.Builder |
builder | ) |
|
|
inlineprivate |
◆ updateMapValuesUsingMutableMap()
void com.google.protobuf.MapForProto2Test.updateMapValuesUsingMutableMap |
( |
TestMap.Builder |
builder | ) |
|
|
inlineprivate |
The documentation for this class was generated from the following file: