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

Classes

class  InnerLiteTest
 
class  InnerTest
 
interface  RegistryTests
 

Public Member Functions

void runTest () throws Exception
 
void runTest () throws Exception
 

Static Public Member Functions

static Test suite ()
 
static Test suite ()
 

Private Member Functions

void runTestMethod (ClassLoader classLoader, Class<? extends RegistryTests > testClass) throws Exception
 
void runTestMethod (ClassLoader classLoader, Class<? extends RegistryTests > testClass) throws Exception
 

Static Private Member Functions

static ClassLoader getLiteOnlyClassLoader ()
 
static ClassLoader getLiteOnlyClassLoader ()
 

Static Private Attributes

static final ClassLoader LITE_CLASS_LOADER = getLiteOnlyClassLoader()
 

Detailed Description

Tests for ExtensionRegistryFactory and the ExtensionRegistry instances it creates.

This test simulates the runtime behaviour of the ExtensionRegistryFactory by delegating test definitions to two inner classes InnerTest and InnerLiteTest, the latter of which is executed using a custom ClassLoader, simulating the ProtoLite environment.

The test mechanism employed here is based on the pattern in

com.google.common.util.concurrent.AbstractFutureFallbackAtomicHelperTest

Tests for ExtensionRegistryFactory and the ExtensionRegistry instances it creates.

This test simulates the runtime behaviour of the ExtensionRegistryFactory by delegating test definitions to two inner classes InnerTest and InnerLiteTest, the latter of which is executed using a custom ClassLoader, simulating the ProtoLite environment.

The test mechanism employed here is based on the pattern in

com.google.common.util.concurrent.AbstractFutureFallbackAtomicHelperTest

This test is temporarily disabled while we figure out how to fix the class loading used for testing lite functionality.

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

Member Function Documentation

◆ getLiteOnlyClassLoader() [1/2]

static ClassLoader com.google.protobuf.ExtensionRegistryFactoryTest.getLiteOnlyClassLoader ( )
inlinestaticprivate

Constructs a custom ClassLoader blacklisting the classes which are inspected in the SUT to determine the Lite/non-Lite runtime.

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

◆ getLiteOnlyClassLoader() [2/2]

static ClassLoader com.google.protobuf.ExtensionRegistryFactoryTest.getLiteOnlyClassLoader ( )
inlinestaticprivate

Constructs a custom ClassLoader blacklisting the classes which are inspected in the SUT to determine the Lite/non-Lite runtime.

Definition at line 255 of file protobuf/java/core/src/test/java/com/google/protobuf/ExtensionRegistryFactoryTest.java.

◆ runTest() [1/2]

void com.google.protobuf.ExtensionRegistryFactoryTest.runTest ( ) throws Exception
inline

Sequentially runs first the Lite and then the non-Lite test variant via classloader manipulation.

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

◆ runTest() [2/2]

void com.google.protobuf.ExtensionRegistryFactoryTest.runTest ( ) throws Exception
inline

Sequentially runs first the Lite and then the non-Lite test variant via classloader manipulation.

Definition at line 228 of file protobuf/java/core/src/test/java/com/google/protobuf/ExtensionRegistryFactoryTest.java.

◆ runTestMethod() [1/2]

void com.google.protobuf.ExtensionRegistryFactoryTest.runTestMethod ( ClassLoader  classLoader,
Class<? extends RegistryTests >  testClass 
) throws Exception
inlineprivate

◆ runTestMethod() [2/2]

void com.google.protobuf.ExtensionRegistryFactoryTest.runTestMethod ( ClassLoader  classLoader,
Class<? extends RegistryTests >  testClass 
) throws Exception
inlineprivate

◆ suite() [1/2]

static Test com.google.protobuf.ExtensionRegistryFactoryTest.suite ( )
inlinestatic

Defines a suite of tests which the JUnit3 runner retrieves by reflection.

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

◆ suite() [2/2]

static Test com.google.protobuf.ExtensionRegistryFactoryTest.suite ( )
inlinestatic

Defines a suite of tests which the JUnit3 runner retrieves by reflection.

Definition at line 215 of file protobuf/java/core/src/test/java/com/google/protobuf/ExtensionRegistryFactoryTest.java.

Member Data Documentation

◆ LITE_CLASS_LOADER

static final ClassLoader com.google.protobuf.ExtensionRegistryFactoryTest.LITE_CLASS_LOADER = getLiteOnlyClassLoader()
staticprivate

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


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