Classes | |
class | InnerLiteTest |
class | InnerTest |
interface | RegistryTests |
Public Member Functions | |
void | runTest () throws Exception |
Static Public Member Functions | |
static Test | suite () |
Private Member Functions | |
void | runTestMethod (ClassLoader classLoader, Class<? extends RegistryTests > testClass) throws Exception |
Static Private Member Functions | |
static ClassLoader | getLiteOnlyClassLoader () |
Static Private Attributes | |
static final ClassLoader | LITE_CLASS_LOADER = getLiteOnlyClassLoader() |
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
Definition at line 56 of file ExtensionRegistryFactoryTest.java.
|
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 ExtensionRegistryFactoryTest.java.
|
inline |
Sequentially runs first the Lite and then the non-Lite test variant via classloader manipulation.
Definition at line 220 of file ExtensionRegistryFactoryTest.java.
|
inlineprivate |
Definition at line 235 of file ExtensionRegistryFactoryTest.java.
|
inlinestatic |
Defines a suite of tests which the JUnit3 runner retrieves by reflection.
Definition at line 207 of file ExtensionRegistryFactoryTest.java.
|
staticprivate |
Definition at line 59 of file ExtensionRegistryFactoryTest.java.