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

Classes

class  AbstractMessageWrapper
 

Public Member Functions

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

Private Member Functions

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

Detailed Description

Unit test for AbstractMessage.

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

Unit test for AbstractMessage.

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

Member Function Documentation

◆ checkEqualsIsConsistent() [1/4]

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

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

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

◆ checkEqualsIsConsistent() [2/4]

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

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

Definition at line 549 of file protobuf/java/core/src/test/java/com/google/protobuf/AbstractMessageTest.java.

◆ checkEqualsIsConsistent() [3/4]

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

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

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

◆ checkEqualsIsConsistent() [4/4]

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

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

Definition at line 559 of file protobuf/java/core/src/test/java/com/google/protobuf/AbstractMessageTest.java.

◆ checkNotEqual() [1/2]

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

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

Note: 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 528 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/AbstractMessageTest.java.

◆ checkNotEqual() [2/2]

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

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

Note: 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 571 of file protobuf/java/core/src/test/java/com/google/protobuf/AbstractMessageTest.java.

◆ testCheckByteStringIsUtf8OnNonUtf8() [1/2]

void com.google.protobuf.AbstractMessageTest.testCheckByteStringIsUtf8OnNonUtf8 ( )
inline

◆ testCheckByteStringIsUtf8OnNonUtf8() [2/2]

void com.google.protobuf.AbstractMessageTest.testCheckByteStringIsUtf8OnNonUtf8 ( )
inline

◆ testCheckByteStringIsUtf8OnUtf8() [1/2]

void com.google.protobuf.AbstractMessageTest.testCheckByteStringIsUtf8OnUtf8 ( )
inline

◆ testCheckByteStringIsUtf8OnUtf8() [2/2]

void com.google.protobuf.AbstractMessageTest.testCheckByteStringIsUtf8OnUtf8 ( )
inline

◆ testClear() [1/2]

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

◆ testClear() [2/2]

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

◆ testCopy() [1/2]

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

◆ testCopy() [2/2]

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

◆ testEqualsAndHashCode() [1/2]

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

◆ testEqualsAndHashCode() [2/2]

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

◆ testForeignIsInitialized() [1/2]

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

◆ testForeignIsInitialized() [2/2]

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

◆ testIsInitialized() [1/2]

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

◆ testIsInitialized() [2/2]

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

◆ testMergeFrom() [1/2]

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

◆ testMergeFrom() [2/2]

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

◆ testOptimizedForSize() [1/2]

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

◆ testOptimizedForSize() [2/2]

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

◆ testPackedParsing() [1/2]

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

◆ testPackedParsing() [2/2]

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

◆ testPackedSerialization() [1/2]

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

◆ testPackedSerialization() [2/2]

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

◆ testParsePackedToUnpacked() [1/2]

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

◆ testParsePackedToUnpacked() [2/2]

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

◆ testParseUnpackedToPacked() [1/2]

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

◆ testParseUnpackedToPacked() [2/2]

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

◆ testParsing() [1/2]

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

◆ testParsing() [2/2]

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

◆ testParsingUninitialized() [1/2]

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

◆ testParsingUninitialized() [2/2]

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

◆ testSerialization() [1/2]

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

◆ testSerialization() [2/2]

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

◆ testSerializedSize() [1/2]

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

◆ testSerializedSize() [2/2]

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

◆ testUnpackedParsing() [1/2]

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

◆ testUnpackedParsing() [2/2]

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

◆ testUnpackedSerialization() [1/2]

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

◆ testUnpackedSerialization() [2/2]

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

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


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