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

Public Member Functions

void testBaseMessageOrBuilder ()
 
void testClear () throws Exception
 
void testClearExtension () throws Exception
 
void testClearOneof () throws Exception
 
void testConflictingOuterClassName ()
 
void testDefaultInstance () throws Exception
 
void testDefaults () throws Exception
 
void testDeserializeWithClassField () throws Exception
 
void testDeserializeWithoutClassField () throws Exception
 
void testEnumInterface () throws Exception
 
void testEnumMap () throws Exception
 
void testEnumValueOptionsInMultipleFilesMode () throws Exception
 
void testEnumValues ()
 
void testExtensionConstantValues () throws Exception
 
void testExtensionCopy () throws Exception
 
void testExtensionDefaults () throws Exception
 
void testExtensionMergeFrom () throws Exception
 
void testExtensionMessageOrBuilder () throws Exception
 
void testExtensionReflectionDefaults () throws Exception
 
void testExtensionReflectionGetters () throws Exception
 
void testExtensionReflectionRepeatedSetters () throws Exception
 
void testExtensionReflectionRepeatedSettersRejectNull () throws Exception
 
void testExtensionReflectionSetters () throws Exception
 
void testExtensionReflectionSettersRejectNull () throws Exception
 
void testExtensionRepeatedSetters () throws Exception
 
void testFieldConstantValues () throws Exception
 
void testGetBuilderForExtensionField ()
 
void testGetBuilderForNonMessageExtensionField ()
 
void testGetFieldBuilder ()
 
void testGetFieldBuilderNotSupportedException ()
 
void testGetFieldBuilderWithInitializedValue ()
 
void testGetRepeatedFieldBuilder ()
 
void testGetRepeatedFieldBuilderNotSupportedException ()
 
void testGetRepeatedFieldBuilderWithInitializedValue ()
 
void testInvalidations () throws Exception
 
void testInvalidations_Extensions () throws Exception
 
void testMergeFromOtherRejectsNull () throws Exception
 
void testMessageOrBuilder () throws Exception
 
void testMessageOrBuilderGetters ()
 
void testMultipleFilesOption () throws Exception
 
void testNestedExtensionInitialization ()
 
void testNonNestedExtensionInitialization ()
 
void testOneofEnumCase () throws Exception
 
void testOneofMerge () throws Exception
 
void testOneofNestedBuilderOnChangePropagation ()
 
void testOneofSerialization () throws Exception
 
void testOneofTypes () throws Exception
 
void testOptionalFieldWithRequiredSubfieldsOptimizedForSize () throws Exception
 
void testParsedMessagesAreImmutable () throws Exception
 
void testParsePackedToUnpacked () throws Exception
 
void testParseUnpackedToPacked () throws Exception
 
void testProtosShareRepeatedArraysIfDidntChange () throws Exception
 
void testRecursiveMessageDefaultInstance () throws Exception
 
void testReflectionClearOneof () throws Exception
 
void testReflectionDefaults () throws Exception
 
void testReflectionGetOneof () throws Exception
 
void testReflectionGetters () throws Exception
 
void testReflectionRepeatedSetters () throws Exception
 
void testReflectionRepeatedSettersRejectNull () throws Exception
 
void testReflectionSetters () throws Exception
 
void testReflectionSettersRejectNull () throws Exception
 
void testRepeatedAppend () throws Exception
 
void testRepeatedAppendIterateOnlyOnce () throws Exception
 
void testRepeatedAppendRejectsNull () throws Exception
 
void testRepeatedArraysAreImmutable () throws Exception
 
void testRepeatedSetters () throws Exception
 
void testRepeatedSettersRejectNull () throws Exception
 
void testSerialize () throws Exception
 
void testSerializePartial () throws Exception
 
void testSetOneofClearsOthers () throws Exception
 
void testSettersRejectNull () throws Exception
 
void testSettingForeignMessageUsingBuilder () throws Exception
 
void testSettingRepeatedForeignMessageUsingBuilder () throws Exception
 
void testToBuilder () throws Exception
 
void testUninitializedExtensionInOptimizedForSize () throws Exception
 
void testUnsetRepeatedExtensionGetField ()
 
void testUsingBuilderMultipleTimes () throws Exception
 

Private Member Functions

void assertIsUnmodifiable (List<?> list)
 

Detailed Description

Unit test for generated messages and generated code. See also MessageTest, which tests some generated message functionality.

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

Definition at line 79 of file core/src/test/java/com/google/protobuf/GeneratedMessageTest.java.

Member Function Documentation

◆ assertIsUnmodifiable()

void com.google.protobuf.GeneratedMessageTest.assertIsUnmodifiable ( List<?>  list)
inlineprivate

◆ testBaseMessageOrBuilder()

void com.google.protobuf.GeneratedMessageTest.testBaseMessageOrBuilder ( )
inline

◆ testClear()

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

◆ testClearExtension()

void com.google.protobuf.GeneratedMessageTest.testClearExtension ( ) throws Exception
inline

◆ testClearOneof()

void com.google.protobuf.GeneratedMessageTest.testClearOneof ( ) throws Exception
inline

◆ testConflictingOuterClassName()

void com.google.protobuf.GeneratedMessageTest.testConflictingOuterClassName ( )
inline

◆ testDefaultInstance()

void com.google.protobuf.GeneratedMessageTest.testDefaultInstance ( ) throws Exception
inline

◆ testDefaults()

void com.google.protobuf.GeneratedMessageTest.testDefaults ( ) throws Exception
inline

◆ testDeserializeWithClassField()

void com.google.protobuf.GeneratedMessageTest.testDeserializeWithClassField ( ) throws Exception
inline

◆ testDeserializeWithoutClassField()

void com.google.protobuf.GeneratedMessageTest.testDeserializeWithoutClassField ( ) throws Exception
inline

◆ testEnumInterface()

void com.google.protobuf.GeneratedMessageTest.testEnumInterface ( ) throws Exception
inline

◆ testEnumMap()

void com.google.protobuf.GeneratedMessageTest.testEnumMap ( ) throws Exception
inline

◆ testEnumValueOptionsInMultipleFilesMode()

void com.google.protobuf.GeneratedMessageTest.testEnumValueOptionsInMultipleFilesMode ( ) throws Exception
inline

◆ testEnumValues()

void com.google.protobuf.GeneratedMessageTest.testEnumValues ( )
inline

◆ testExtensionConstantValues()

void com.google.protobuf.GeneratedMessageTest.testExtensionConstantValues ( ) throws Exception
inline

◆ testExtensionCopy()

void com.google.protobuf.GeneratedMessageTest.testExtensionCopy ( ) throws Exception
inline

◆ testExtensionDefaults()

void com.google.protobuf.GeneratedMessageTest.testExtensionDefaults ( ) throws Exception
inline

◆ testExtensionMergeFrom()

void com.google.protobuf.GeneratedMessageTest.testExtensionMergeFrom ( ) throws Exception
inline

◆ testExtensionMessageOrBuilder()

void com.google.protobuf.GeneratedMessageTest.testExtensionMessageOrBuilder ( ) throws Exception
inline

◆ testExtensionReflectionDefaults()

void com.google.protobuf.GeneratedMessageTest.testExtensionReflectionDefaults ( ) throws Exception
inline

◆ testExtensionReflectionGetters()

void com.google.protobuf.GeneratedMessageTest.testExtensionReflectionGetters ( ) throws Exception
inline

◆ testExtensionReflectionRepeatedSetters()

void com.google.protobuf.GeneratedMessageTest.testExtensionReflectionRepeatedSetters ( ) throws Exception
inline

◆ testExtensionReflectionRepeatedSettersRejectNull()

void com.google.protobuf.GeneratedMessageTest.testExtensionReflectionRepeatedSettersRejectNull ( ) throws Exception
inline

◆ testExtensionReflectionSetters()

void com.google.protobuf.GeneratedMessageTest.testExtensionReflectionSetters ( ) throws Exception
inline

◆ testExtensionReflectionSettersRejectNull()

void com.google.protobuf.GeneratedMessageTest.testExtensionReflectionSettersRejectNull ( ) throws Exception
inline

◆ testExtensionRepeatedSetters()

void com.google.protobuf.GeneratedMessageTest.testExtensionRepeatedSetters ( ) throws Exception
inline

◆ testFieldConstantValues()

void com.google.protobuf.GeneratedMessageTest.testFieldConstantValues ( ) throws Exception
inline

◆ testGetBuilderForExtensionField()

void com.google.protobuf.GeneratedMessageTest.testGetBuilderForExtensionField ( )
inline

◆ testGetBuilderForNonMessageExtensionField()

void com.google.protobuf.GeneratedMessageTest.testGetBuilderForNonMessageExtensionField ( )
inline

◆ testGetFieldBuilder()

void com.google.protobuf.GeneratedMessageTest.testGetFieldBuilder ( )
inline

◆ testGetFieldBuilderNotSupportedException()

void com.google.protobuf.GeneratedMessageTest.testGetFieldBuilderNotSupportedException ( )
inline

◆ testGetFieldBuilderWithInitializedValue()

void com.google.protobuf.GeneratedMessageTest.testGetFieldBuilderWithInitializedValue ( )
inline

◆ testGetRepeatedFieldBuilder()

void com.google.protobuf.GeneratedMessageTest.testGetRepeatedFieldBuilder ( )
inline

◆ testGetRepeatedFieldBuilderNotSupportedException()

void com.google.protobuf.GeneratedMessageTest.testGetRepeatedFieldBuilderNotSupportedException ( )
inline

◆ testGetRepeatedFieldBuilderWithInitializedValue()

void com.google.protobuf.GeneratedMessageTest.testGetRepeatedFieldBuilderWithInitializedValue ( )
inline

◆ testInvalidations()

void com.google.protobuf.GeneratedMessageTest.testInvalidations ( ) throws Exception
inline

◆ testInvalidations_Extensions()

void com.google.protobuf.GeneratedMessageTest.testInvalidations_Extensions ( ) throws Exception
inline

◆ testMergeFromOtherRejectsNull()

void com.google.protobuf.GeneratedMessageTest.testMergeFromOtherRejectsNull ( ) throws Exception
inline

◆ testMessageOrBuilder()

void com.google.protobuf.GeneratedMessageTest.testMessageOrBuilder ( ) throws Exception
inline

◆ testMessageOrBuilderGetters()

void com.google.protobuf.GeneratedMessageTest.testMessageOrBuilderGetters ( )
inline

◆ testMultipleFilesOption()

void com.google.protobuf.GeneratedMessageTest.testMultipleFilesOption ( ) throws Exception
inline

◆ testNestedExtensionInitialization()

void com.google.protobuf.GeneratedMessageTest.testNestedExtensionInitialization ( )
inline

◆ testNonNestedExtensionInitialization()

void com.google.protobuf.GeneratedMessageTest.testNonNestedExtensionInitialization ( )
inline

◆ testOneofEnumCase()

void com.google.protobuf.GeneratedMessageTest.testOneofEnumCase ( ) throws Exception
inline

◆ testOneofMerge()

void com.google.protobuf.GeneratedMessageTest.testOneofMerge ( ) throws Exception
inline

◆ testOneofNestedBuilderOnChangePropagation()

void com.google.protobuf.GeneratedMessageTest.testOneofNestedBuilderOnChangePropagation ( )
inline

◆ testOneofSerialization()

void com.google.protobuf.GeneratedMessageTest.testOneofSerialization ( ) throws Exception
inline

◆ testOneofTypes()

void com.google.protobuf.GeneratedMessageTest.testOneofTypes ( ) throws Exception
inline

◆ testOptionalFieldWithRequiredSubfieldsOptimizedForSize()

void com.google.protobuf.GeneratedMessageTest.testOptionalFieldWithRequiredSubfieldsOptimizedForSize ( ) throws Exception
inline

◆ testParsedMessagesAreImmutable()

void com.google.protobuf.GeneratedMessageTest.testParsedMessagesAreImmutable ( ) throws Exception
inline

◆ testParsePackedToUnpacked()

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

◆ testParseUnpackedToPacked()

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

◆ testProtosShareRepeatedArraysIfDidntChange()

void com.google.protobuf.GeneratedMessageTest.testProtosShareRepeatedArraysIfDidntChange ( ) throws Exception
inline

◆ testRecursiveMessageDefaultInstance()

void com.google.protobuf.GeneratedMessageTest.testRecursiveMessageDefaultInstance ( ) throws Exception
inline

◆ testReflectionClearOneof()

void com.google.protobuf.GeneratedMessageTest.testReflectionClearOneof ( ) throws Exception
inline

◆ testReflectionDefaults()

void com.google.protobuf.GeneratedMessageTest.testReflectionDefaults ( ) throws Exception
inline

◆ testReflectionGetOneof()

void com.google.protobuf.GeneratedMessageTest.testReflectionGetOneof ( ) throws Exception
inline

◆ testReflectionGetters()

void com.google.protobuf.GeneratedMessageTest.testReflectionGetters ( ) throws Exception
inline

◆ testReflectionRepeatedSetters()

void com.google.protobuf.GeneratedMessageTest.testReflectionRepeatedSetters ( ) throws Exception
inline

◆ testReflectionRepeatedSettersRejectNull()

void com.google.protobuf.GeneratedMessageTest.testReflectionRepeatedSettersRejectNull ( ) throws Exception
inline

◆ testReflectionSetters()

void com.google.protobuf.GeneratedMessageTest.testReflectionSetters ( ) throws Exception
inline

◆ testReflectionSettersRejectNull()

void com.google.protobuf.GeneratedMessageTest.testReflectionSettersRejectNull ( ) throws Exception
inline

◆ testRepeatedAppend()

void com.google.protobuf.GeneratedMessageTest.testRepeatedAppend ( ) throws Exception
inline

◆ testRepeatedAppendIterateOnlyOnce()

void com.google.protobuf.GeneratedMessageTest.testRepeatedAppendIterateOnlyOnce ( ) throws Exception
inline

◆ testRepeatedAppendRejectsNull()

void com.google.protobuf.GeneratedMessageTest.testRepeatedAppendRejectsNull ( ) throws Exception
inline

◆ testRepeatedArraysAreImmutable()

void com.google.protobuf.GeneratedMessageTest.testRepeatedArraysAreImmutable ( ) throws Exception
inline

◆ testRepeatedSetters()

void com.google.protobuf.GeneratedMessageTest.testRepeatedSetters ( ) throws Exception
inline

◆ testRepeatedSettersRejectNull()

void com.google.protobuf.GeneratedMessageTest.testRepeatedSettersRejectNull ( ) throws Exception
inline

◆ testSerialize()

void com.google.protobuf.GeneratedMessageTest.testSerialize ( ) throws Exception
inline

◆ testSerializePartial()

void com.google.protobuf.GeneratedMessageTest.testSerializePartial ( ) throws Exception
inline

◆ testSetOneofClearsOthers()

void com.google.protobuf.GeneratedMessageTest.testSetOneofClearsOthers ( ) throws Exception
inline

◆ testSettersRejectNull()

void com.google.protobuf.GeneratedMessageTest.testSettersRejectNull ( ) throws Exception
inline

◆ testSettingForeignMessageUsingBuilder()

void com.google.protobuf.GeneratedMessageTest.testSettingForeignMessageUsingBuilder ( ) throws Exception
inline

◆ testSettingRepeatedForeignMessageUsingBuilder()

void com.google.protobuf.GeneratedMessageTest.testSettingRepeatedForeignMessageUsingBuilder ( ) throws Exception
inline

◆ testToBuilder()

void com.google.protobuf.GeneratedMessageTest.testToBuilder ( ) throws Exception
inline

◆ testUninitializedExtensionInOptimizedForSize()

void com.google.protobuf.GeneratedMessageTest.testUninitializedExtensionInOptimizedForSize ( ) throws Exception
inline

◆ testUnsetRepeatedExtensionGetField()

void com.google.protobuf.GeneratedMessageTest.testUnsetRepeatedExtensionGetField ( )
inline

◆ testUsingBuilderMultipleTimes()

void com.google.protobuf.GeneratedMessageTest.testUsingBuilderMultipleTimes ( ) throws Exception
inline

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


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