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 testBuildNestedPartial () throws Exception
 
void testBuildPartial () throws Exception
 
void testBuildPartial () throws Exception
 
void testDynamicBuildPartial () throws Exception
 
void testDynamicBuildPartial () throws Exception
 
void testDynamicMergeFrom () throws Exception
 
void testDynamicMergeFrom () throws Exception
 
void testDynamicParseUnititialized () throws Exception
 
void testDynamicParseUnititialized () throws Exception
 
void testDynamicRepeatedMessageNotNull () throws Exception
 
void testDynamicRepeatedMessageNotNull () throws Exception
 
void testDynamicRepeatedMessageNull () throws Exception
 
void testDynamicRepeatedMessageNull () throws Exception
 
void testDynamicUninitializedException () throws Exception
 
void testDynamicUninitializedException () throws Exception
 
void testMergeFrom () throws Exception
 
void testMergeFrom () throws Exception
 
void testMergeFromDynamic () throws Exception
 
void testMergeFromDynamic () throws Exception
 
void testNegative0FloatingPointEquality () throws Exception
 
void testNestedUninitializedException () throws Exception
 
void testNestedUninitializedException () throws Exception
 
void testParseNestedUnititialized () throws Exception
 
void testParseNestedUnititialized () throws Exception
 
void testParseUnititialized () throws Exception
 
void testParseUnititialized () throws Exception
 
void testParsingWithNullExtensionRegistry () throws Exception
 
void testParsingWithNullExtensionRegistry () throws Exception
 
void testPreservesFloatingPointNegative0 () throws Exception
 
void testRequired () throws Exception
 
void testRequired () throws Exception
 
void testRequiredDynamic () throws Exception
 
void testRequiredDynamic () throws Exception
 
void testRequiredDynamicForeign () throws Exception
 
void testRequiredDynamicForeign () throws Exception
 
void testRequiredExtension () throws Exception
 
void testRequiredExtension () throws Exception
 
void testRequiredForeign () throws Exception
 
void testRequiredForeign () throws Exception
 
void testUninitializedException () 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

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

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

Member Function Documentation

◆ testBuildNestedPartial() [1/2]

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

◆ testBuildNestedPartial() [2/2]

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

◆ testBuildPartial() [1/2]

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

◆ testBuildPartial() [2/2]

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

◆ testDynamicBuildPartial() [1/2]

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

◆ testDynamicBuildPartial() [2/2]

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

◆ testDynamicMergeFrom() [1/2]

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

◆ testDynamicMergeFrom() [2/2]

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

Test merging two DynamicMessages.

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

◆ testDynamicParseUnititialized() [1/2]

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

◆ testDynamicParseUnititialized() [2/2]

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

◆ testDynamicRepeatedMessageNotNull() [1/2]

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

◆ testDynamicRepeatedMessageNotNull() [2/2]

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

Test reading repeated message from DynamicMessage.

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

◆ testDynamicRepeatedMessageNull() [1/2]

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

◆ testDynamicRepeatedMessageNull() [2/2]

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

Test reading unset repeated message from DynamicMessage.

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

◆ testDynamicUninitializedException() [1/2]

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

◆ testDynamicUninitializedException() [2/2]

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

◆ testMergeFrom() [1/2]

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

◆ testMergeFrom() [2/2]

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

◆ testMergeFromDynamic() [1/2]

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 bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/MessageTest.java.

◆ testMergeFromDynamic() [2/2]

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 100 of file protobuf/java/core/src/test/java/com/google/protobuf/MessageTest.java.

◆ testNegative0FloatingPointEquality()

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

◆ testNestedUninitializedException() [1/2]

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

◆ testNestedUninitializedException() [2/2]

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

◆ testParseNestedUnititialized() [1/2]

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

◆ testParseNestedUnititialized() [2/2]

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

◆ testParseUnititialized() [1/2]

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

◆ testParseUnititialized() [2/2]

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

◆ testParsingWithNullExtensionRegistry() [1/2]

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

◆ testParsingWithNullExtensionRegistry() [2/2]

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

◆ testPreservesFloatingPointNegative0()

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

◆ testRequired() [1/2]

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

◆ testRequired() [2/2]

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

◆ testRequiredDynamic() [1/2]

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

◆ testRequiredDynamic() [2/2]

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

◆ testRequiredDynamicForeign() [1/2]

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

◆ testRequiredDynamicForeign() [2/2]

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

◆ testRequiredExtension() [1/2]

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

◆ testRequiredExtension() [2/2]

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

◆ testRequiredForeign() [1/2]

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

◆ testRequiredForeign() [2/2]

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

◆ testUninitializedException() [1/2]

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

◆ testUninitializedException() [2/2]

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

Member Data Documentation

◆ TEST_REQUIRED_INITIALIZED

static 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 bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/MessageTest.java.

◆ TEST_REQUIRED_UNINITIALIZED

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

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:07