Public Member Functions | Static Private Attributes | List of all members
com.google.protobuf.test.MessageTest Class Reference
Inheritance diagram for com.google.protobuf.test.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 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
 

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 50 of file compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/MessageTest.java.

Member Function Documentation

◆ testBuildNestedPartial()

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

◆ testBuildPartial()

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

◆ testDynamicBuildPartial()

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

◆ testDynamicMergeFrom()

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

Test merging two DynamicMessages.

Definition at line 103 of file compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/MessageTest.java.

◆ testDynamicParseUnititialized()

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

◆ testDynamicRepeatedMessageNotNull()

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

◆ testDynamicRepeatedMessageNull()

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

Test reading unset repeated message from DynamicMessage.

Definition at line 318 of file compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/MessageTest.java.

◆ testDynamicUninitializedException()

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

◆ testMergeFrom()

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

◆ testMergeFromDynamic()

void com.google.protobuf.test.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 93 of file compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/MessageTest.java.

◆ testNestedUninitializedException()

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

◆ testParseNestedUnititialized()

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

◆ testParseUnititialized()

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

◆ testRequired()

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

◆ testRequiredDynamic()

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

◆ testRequiredDynamicForeign()

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

◆ testRequiredExtension()

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

◆ testRequiredForeign()

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

◆ testUninitializedException()

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

Member Data Documentation

◆ TEST_REQUIRED_INITIALIZED

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

Definition at line 117 of file compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/MessageTest.java.

◆ TEST_REQUIRED_UNINITIALIZED

final TestRequired com.google.protobuf.test.MessageTest.TEST_REQUIRED_UNINITIALIZED
staticprivate
Initial value:
=
TestRequired.getDefaultInstance()

Definition at line 115 of file compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/MessageTest.java.


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


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