ExtensionRegistrar is used to register extensions.
| Modifier and Type | Method and Description |
|---|---|
| public void | initializeExtensions(Class<?>
the test class for which the extensions are initialized;
never testClass, Object nullthe test instance to be used to initialize the
extensions; never testInstance)nullInitialize all registered extensions for the supplied |
| public void | registerExtension(Class<? extends Extension>
the type of extension to register extensionType)Instantiate an extension of the given type using its default constructor and register it in the registry. |
| public void | registerExtension(Extension
the extension to register; never extension, Object nullthe source of the extension; never source)nullRegister the supplied |
| public void | registerSyntheticExtension(Extension
the extension to register; never extension, Object nullthe source of the extension; never source)nullRegister the supplied |
| public void | registerUninitializedExtension(Class<?>
the test class for which the extension is registered;
never testClass, Field nullthe source of the extension; never source, Function<Object, ? extends Extension> nullthe initializer function to be used to create the
extension; never initializer)nullRegister an uninitialized extension for the supplied |
| initializeExtensions | back to summary |
|---|---|
| public void initializeExtensions(Class<?> testClass, Object testInstance) Initialize all registered extensions for the supplied | |
| registerExtension | back to summary |
|---|---|
| public void registerExtension(Class<? extends Extension> extensionType) Instantiate an extension of the given type using its default constructor and register it in the registry. A new | |
| registerExtension | back to summary |
|---|---|
| public void registerExtension(Extension extension, Object source) Register the supplied Semantics for SourceIf an extension is registered declaratively via
| |
| registerSyntheticExtension | back to summary |
|---|---|
| public void registerSyntheticExtension(Extension extension, Object source) Register the supplied
| |
| registerUninitializedExtension | back to summary |
|---|---|
| public void registerUninitializedExtension(Class<?> testClass, Field source, Function<Object, ? extends Extension> initializer) Register an uninitialized extension for the supplied Uninitialized extensions are typically registered for fields annotated
with | |