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 testFieldPresence ()
 
void testFieldPresenceByReflection ()
 
void testFieldPresenceByReflection ()
 
void testFieldPresenceDynamicMessage ()
 
void testFieldPresenceDynamicMessage ()
 
void testHasMethod ()
 
void testHasMethod ()
 
void testHasMethodForProto3Optional () throws Exception
 
void testIsInitialized () throws Exception
 
void testIsInitialized () throws Exception
 
void testLazyField () throws Exception
 
void testLazyField () throws Exception
 
void testMessageField ()
 
void testMessageField ()
 
void testOneofEquals () throws Exception
 
void testOneofEquals () throws Exception
 
void testProto3Optional_reflection () throws Exception
 
void testRepeatedFields () throws Exception
 
void testRepeatedFields () throws Exception
 
void testSerializeAndParse () throws Exception
 
void testSerializeAndParse () throws Exception
 

Static Private Member Functions

static void assertHasMethodExisting (Class<?> clazz, String camelName)
 
static void assertHasMethodRemoved (Class<?> classWithFieldPresence, Class<?> classWithoutFieldPresence, String camelName)
 
static void assertHasMethodRemoved (Class<?> classWithFieldPresence, Class<?> classWithoutFieldPresence, String camelName)
 
static void assertProto3OptionalReflection (String name) throws Exception
 
static boolean hasMethod (Class<?> clazz, String name)
 
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 bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/FieldPresenceTest.java.

Member Function Documentation

◆ assertHasMethodExisting()

static void com.google.protobuf.FieldPresenceTest.assertHasMethodExisting ( Class<?>  clazz,
String  camelName 
)
inlinestaticprivate

◆ assertHasMethodRemoved() [1/2]

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

◆ assertHasMethodRemoved() [2/2]

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

◆ assertProto3OptionalReflection()

static void com.google.protobuf.FieldPresenceTest.assertProto3OptionalReflection ( String  name) throws Exception
inlinestaticprivate

◆ hasMethod() [1/2]

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

◆ hasMethod() [2/2]

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

◆ testFieldPresence() [1/2]

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

◆ testFieldPresence() [2/2]

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

◆ testFieldPresenceByReflection() [1/2]

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

◆ testFieldPresenceByReflection() [2/2]

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

◆ testFieldPresenceDynamicMessage() [1/2]

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

◆ testFieldPresenceDynamicMessage() [2/2]

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

◆ testHasMethod() [1/2]

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

◆ testHasMethod() [2/2]

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

◆ testHasMethodForProto3Optional()

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

◆ testIsInitialized() [1/2]

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

◆ testIsInitialized() [2/2]

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

◆ testLazyField() [1/2]

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

◆ testLazyField() [2/2]

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

◆ testMessageField() [1/2]

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

◆ testMessageField() [2/2]

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

◆ testOneofEquals() [1/2]

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

◆ testOneofEquals() [2/2]

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

◆ testProto3Optional_reflection()

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

◆ testRepeatedFields() [1/2]

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

◆ testRepeatedFields() [2/2]

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

◆ testSerializeAndParse() [1/2]

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

◆ testSerializeAndParse() [2/2]

void com.google.protobuf.FieldPresenceTest.testSerializeAndParse ( ) 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:04