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

Classes

class  AbstractMessageWrapper
 

Public Member Functions

void testClear () throws Exception
 
void testCopy () throws Exception
 
void testEqualsAndHashCode () throws Exception
 
void testForeignIsInitialized () throws Exception
 
void testIsInitialized () throws Exception
 
void testMergeFrom () throws Exception
 
void testOptimizedForSize () throws Exception
 
void testPackedParsing () throws Exception
 
void testPackedSerialization () throws Exception
 
void testParsePackedToUnpacked () throws Exception
 
void testParseUnpackedToPacked () throws Exception
 
void testParsing () throws Exception
 
void testParsingUninitialized () throws Exception
 
void testSerialization () throws Exception
 
void testSerializedSize () throws Exception
 
void testUnpackedParsing () throws Exception
 
void testUnpackedSerialization () throws Exception
 

Private Member Functions

void checkEqualsIsConsistent (Message message)
 
void checkEqualsIsConsistent (Message message1, Message message2)
 
void checkNotEqual (Message m1, Message m2)
 

Static Private Attributes

static final TestRequired TEST_REQUIRED_INITIALIZED
 
static final TestRequired TEST_REQUIRED_UNINITIALIZED
 

Detailed Description

Unit test for AbstractMessage.

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

Definition at line 54 of file bloaty/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/AbstractMessageTest.java.

Member Function Documentation

◆ checkEqualsIsConsistent() [1/2]

void com.google.protobuf.test.AbstractMessageTest.checkEqualsIsConsistent ( Message  message)
inlineprivate

Asserts that the given proto has symmetric equals and hashCode methods.

Definition at line 476 of file bloaty/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/AbstractMessageTest.java.

◆ checkEqualsIsConsistent() [2/2]

void com.google.protobuf.test.AbstractMessageTest.checkEqualsIsConsistent ( Message  message1,
Message  message2 
)
inlineprivate

Asserts that the given protos are equal and have the same hash code.

Definition at line 488 of file bloaty/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/AbstractMessageTest.java.

◆ checkNotEqual()

void com.google.protobuf.test.AbstractMessageTest.checkNotEqual ( Message  m1,
Message  m2 
)
inlineprivate

Asserts that the given protos are not equal and have different hash codes.

Warning
It's valid for non-equal objects to have the same hash code, so this test is stricter than it needs to be. However, this should happen relatively rarely.

Definition at line 501 of file bloaty/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/AbstractMessageTest.java.

◆ testClear()

void com.google.protobuf.test.AbstractMessageTest.testClear ( ) throws Exception
inline

◆ testCopy()

void com.google.protobuf.test.AbstractMessageTest.testCopy ( ) throws Exception
inline

◆ testEqualsAndHashCode()

void com.google.protobuf.test.AbstractMessageTest.testEqualsAndHashCode ( ) throws Exception
inline

◆ testForeignIsInitialized()

void com.google.protobuf.test.AbstractMessageTest.testForeignIsInitialized ( ) throws Exception
inline

◆ testIsInitialized()

void com.google.protobuf.test.AbstractMessageTest.testIsInitialized ( ) throws Exception
inline

◆ testMergeFrom()

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

◆ testOptimizedForSize()

void com.google.protobuf.test.AbstractMessageTest.testOptimizedForSize ( ) throws Exception
inline

◆ testPackedParsing()

void com.google.protobuf.test.AbstractMessageTest.testPackedParsing ( ) throws Exception
inline

◆ testPackedSerialization()

void com.google.protobuf.test.AbstractMessageTest.testPackedSerialization ( ) throws Exception
inline

◆ testParsePackedToUnpacked()

void com.google.protobuf.test.AbstractMessageTest.testParsePackedToUnpacked ( ) throws Exception
inline

◆ testParseUnpackedToPacked()

void com.google.protobuf.test.AbstractMessageTest.testParseUnpackedToPacked ( ) throws Exception
inline

◆ testParsing()

void com.google.protobuf.test.AbstractMessageTest.testParsing ( ) throws Exception
inline

◆ testParsingUninitialized()

void com.google.protobuf.test.AbstractMessageTest.testParsingUninitialized ( ) throws Exception
inline

◆ testSerialization()

void com.google.protobuf.test.AbstractMessageTest.testSerialization ( ) throws Exception
inline

◆ testSerializedSize()

void com.google.protobuf.test.AbstractMessageTest.testSerializedSize ( ) throws Exception
inline

◆ testUnpackedParsing()

void com.google.protobuf.test.AbstractMessageTest.testUnpackedParsing ( ) throws Exception
inline

◆ testUnpackedSerialization()

void com.google.protobuf.test.AbstractMessageTest.testUnpackedSerialization ( ) throws Exception
inline

Member Data Documentation

◆ TEST_REQUIRED_INITIALIZED

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

Definition at line 329 of file bloaty/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/AbstractMessageTest.java.

◆ TEST_REQUIRED_UNINITIALIZED

final TestRequired com.google.protobuf.test.AbstractMessageTest.TEST_REQUIRED_UNINITIALIZED
staticprivate

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


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