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

Public Member Functions

void testFieldPresence ()
 
void testFieldPresenceByReflection ()
 
void testFieldPresenceDynamicMessage ()
 
void testHasMethod ()
 
void testIsInitialized () throws Exception
 
void testLazyField () throws Exception
 
void testMessageField ()
 
void testOneofEquals () throws Exception
 
void testRepeatedFields () throws Exception
 
void testSerializeAndParse () throws Exception
 

Static Private Member Functions

static void assertHasMethodRemoved (Class<?> classWithFieldPresence, Class<?> classWithoutFieldPresence, String camelName)
 
static boolean hasMethod (Class<?> clazz, String name)
 

Detailed Description

Unit tests for protos that doesn't support field presence test for optional non-message fields.

Definition at line 46 of file FieldPresenceTest.java.

Member Function Documentation

◆ assertHasMethodRemoved()

static void com.google.protobuf.FieldPresenceTest.assertHasMethodRemoved ( Class<?>  classWithFieldPresence,
Class<?>  classWithoutFieldPresence,
String  camelName 
)
inlinestaticprivate

Definition at line 59 of file FieldPresenceTest.java.

◆ hasMethod()

static boolean com.google.protobuf.FieldPresenceTest.hasMethod ( Class<?>  clazz,
String  name 
)
inlinestaticprivate

Definition at line 47 of file FieldPresenceTest.java.

◆ testFieldPresence()

void com.google.protobuf.FieldPresenceTest.testFieldPresence ( )
inline

Definition at line 133 of file FieldPresenceTest.java.

◆ testFieldPresenceByReflection()

void com.google.protobuf.FieldPresenceTest.testFieldPresenceByReflection ( )
inline

Definition at line 172 of file FieldPresenceTest.java.

◆ testFieldPresenceDynamicMessage()

void com.google.protobuf.FieldPresenceTest.testFieldPresenceDynamicMessage ( )
inline

Definition at line 216 of file FieldPresenceTest.java.

◆ testHasMethod()

void com.google.protobuf.FieldPresenceTest.testHasMethod ( )
inline

Definition at line 67 of file FieldPresenceTest.java.

◆ testIsInitialized()

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

Definition at line 339 of file FieldPresenceTest.java.

◆ testLazyField()

void com.google.protobuf.FieldPresenceTest.testLazyField ( ) throws Exception
inline

Definition at line 113 of file FieldPresenceTest.java.

◆ testMessageField()

void com.google.protobuf.FieldPresenceTest.testMessageField ( )
inline

Definition at line 266 of file FieldPresenceTest.java.

◆ testOneofEquals()

void com.google.protobuf.FieldPresenceTest.testOneofEquals ( ) throws Exception
inline

Definition at line 103 of file FieldPresenceTest.java.

◆ testRepeatedFields()

void com.google.protobuf.FieldPresenceTest.testRepeatedFields ( ) throws Exception
inline

Definition at line 314 of file FieldPresenceTest.java.

◆ testSerializeAndParse()

void com.google.protobuf.FieldPresenceTest.testSerializeAndParse ( ) throws Exception
inline

Definition at line 289 of file FieldPresenceTest.java.


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


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