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

Public Member Functions

void testBuildNestedPartial () throws Exception
 
void testBuildPartial () throws Exception
 
void testDynamicBuildPartial () throws Exception
 
void testDynamicMergeFrom () throws Exception
 
void testDynamicParseUnititialized () throws Exception
 
void testDynamicRepeatedMessageNotNull () throws Exception
 
void testDynamicRepeatedMessageNull () throws Exception
 
void testDynamicUninitializedException () throws Exception
 
void testMergeFrom () throws Exception
 
void testMergeFromDynamic () throws Exception
 
void testNestedUninitializedException () throws Exception
 
void testParseNestedUnititialized () throws Exception
 
void testParseUnititialized () throws Exception
 
void testParsingWithNullExtensionRegistry () throws Exception
 
void testRequired () throws Exception
 
void testRequiredDynamic () throws Exception
 
void testRequiredDynamicForeign () throws Exception
 
void testRequiredExtension () throws Exception
 
void testRequiredForeign () throws Exception
 
void testUninitializedException () throws Exception
 

Static Private Attributes

static final TestRequired TEST_REQUIRED_INITIALIZED
 
static final TestRequired TEST_REQUIRED_UNINITIALIZED = TestRequired.getDefaultInstance()
 

Detailed Description

Misc. unit tests for message operations that apply to both generated and dynamic messages.

Author
kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com Kenton Varda

Definition at line 46 of file core/src/test/java/com/google/protobuf/MessageTest.java.

Member Function Documentation

◆ testBuildNestedPartial()

void com.google.protobuf.MessageTest.testBuildNestedPartial ( ) throws Exception
inline

◆ testBuildPartial()

void com.google.protobuf.MessageTest.testBuildPartial ( ) throws Exception
inline

◆ testDynamicBuildPartial()

void com.google.protobuf.MessageTest.testDynamicBuildPartial ( ) throws Exception
inline

◆ testDynamicMergeFrom()

void com.google.protobuf.MessageTest.testDynamicMergeFrom ( ) throws Exception
inline

Test merging two DynamicMessages.

Definition at line 105 of file core/src/test/java/com/google/protobuf/MessageTest.java.

◆ testDynamicParseUnititialized()

void com.google.protobuf.MessageTest.testDynamicParseUnititialized ( ) throws Exception
inline

◆ testDynamicRepeatedMessageNotNull()

void com.google.protobuf.MessageTest.testDynamicRepeatedMessageNotNull ( ) throws Exception
inline

Test reading repeated message from DynamicMessage.

Definition at line 333 of file core/src/test/java/com/google/protobuf/MessageTest.java.

◆ testDynamicRepeatedMessageNull()

void com.google.protobuf.MessageTest.testDynamicRepeatedMessageNull ( ) throws Exception
inline

Test reading unset repeated message from DynamicMessage.

Definition at line 316 of file core/src/test/java/com/google/protobuf/MessageTest.java.

◆ testDynamicUninitializedException()

void com.google.protobuf.MessageTest.testDynamicUninitializedException ( ) throws Exception
inline

◆ testMergeFrom()

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

◆ testMergeFromDynamic()

void com.google.protobuf.MessageTest.testMergeFromDynamic ( ) throws Exception
inline

Test merging a DynamicMessage into a GeneratedMessage. As long as they have the same descriptor, this should work, but it is an entirely different code path.

Definition at line 95 of file core/src/test/java/com/google/protobuf/MessageTest.java.

◆ testNestedUninitializedException()

void com.google.protobuf.MessageTest.testNestedUninitializedException ( ) throws Exception
inline

◆ testParseNestedUnititialized()

void com.google.protobuf.MessageTest.testParseNestedUnititialized ( ) throws Exception
inline

◆ testParseUnititialized()

void com.google.protobuf.MessageTest.testParseUnititialized ( ) throws Exception
inline

◆ testParsingWithNullExtensionRegistry()

void com.google.protobuf.MessageTest.testParsingWithNullExtensionRegistry ( ) throws Exception
inline

◆ testRequired()

void com.google.protobuf.MessageTest.testRequired ( ) throws Exception
inline

◆ testRequiredDynamic()

void com.google.protobuf.MessageTest.testRequiredDynamic ( ) throws Exception
inline

◆ testRequiredDynamicForeign()

void com.google.protobuf.MessageTest.testRequiredDynamicForeign ( ) throws Exception
inline

◆ testRequiredExtension()

void com.google.protobuf.MessageTest.testRequiredExtension ( ) throws Exception
inline

◆ testRequiredForeign()

void com.google.protobuf.MessageTest.testRequiredForeign ( ) throws Exception
inline

◆ testUninitializedException()

void com.google.protobuf.MessageTest.testUninitializedException ( ) throws Exception
inline

Member Data Documentation

◆ TEST_REQUIRED_INITIALIZED

final TestRequired com.google.protobuf.MessageTest.TEST_REQUIRED_INITIALIZED
staticprivate
Initial value:
=
TestRequired.newBuilder().setA(1).setB(2).setC(3).build()

Definition at line 118 of file core/src/test/java/com/google/protobuf/MessageTest.java.

◆ TEST_REQUIRED_UNINITIALIZED

final TestRequired com.google.protobuf.MessageTest.TEST_REQUIRED_UNINITIALIZED = TestRequired.getDefaultInstance()
staticprivate

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


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