public class MockitoComponentManager extends TestComponentManager
componentRegistrator| Constructor and Description |
|---|
MockitoComponentManager() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
registerMockComponent(Type roleType)
Registers a Mock component (using the default role hint).
|
<T> T |
registerMockComponent(Type roleType,
String roleHint)
Registers a Mock component.
|
initializeTest, registerComponent, registerComponent, registerComponent, registerMemoryConfigurationSource, shutdownTestcreateLogger, dispose, getComponentDescriptor, getComponentDescriptorList, getComponentDescriptorList, getComponentEventManager, getComponentInstance, getInstance, getInstance, getInstanceList, getInstanceMap, getParent, hasComponent, hasComponent, initialize, registerComponent, registerComponent, release, setComponentEventManager, setParent, unregisterComponent, unregisterComponentpublic <T> T registerMockComponent(Type roleType, String roleHint) throws Exception
T - the mockroleType - the type of the component role to registerroleHint - the role hint of the component to registerException - in case of an error during registrationpublic <T> T registerMockComponent(Type roleType) throws Exception
T - the mockroleType - the type of the component role to registerException - in case of an error during registrationCopyright © 2004–2014 XWiki. All rights reserved.