|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.component.embed.EmbeddableComponentManager
org.xwiki.test.jmock.MockingComponentManager
MockitoComponentManagerRule instead
@Deprecated public class MockingComponentManager
Adds method to EmbeddableComponentManager to easily register mock components when writing tests.
| Constructor Summary | |
|---|---|
MockingComponentManager()
Deprecated. |
|
| Method Summary | ||
|---|---|---|
|
registerMockComponent(org.jmock.Mockery mockery,
Type role)
Deprecated. Register a mock component. |
|
|
registerMockComponent(org.jmock.Mockery mockery,
Type role,
String hint)
Deprecated. Register a mock component. |
|
|
registerMockComponent(org.jmock.Mockery mockery,
Type role,
String hint,
String mockId)
Deprecated. Register a mock component. |
|
|
registerMockComponentWithId(org.jmock.Mockery mockery,
Type role,
String mockId)
Deprecated. Register a mock component. |
|
| Methods inherited from class org.xwiki.component.embed.EmbeddableComponentManager |
|---|
createLogger, getComponentDescriptor, getComponentDescriptorList, getComponentDescriptorList, getComponentEventManager, getComponentInstance, getInstance, getInstance, getInstanceList, getInstanceMap, getParent, hasComponent, hasComponent, initialize, registerComponent, registerComponent, release, setComponentEventManager, setParent, unregisterComponent, unregisterComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockingComponentManager()
| Method Detail |
|---|
public <T> T registerMockComponent(org.jmock.Mockery mockery,
Type role,
String hint,
String mockId)
throws Exception
T - the component role classmockery - the JMock mockery instance to create the mock componentrole - the role of the component to registerhint - the hint of the component to registermockId - the JMock id (this is needed when registering several mocks for the same interface)
Exception - if the registration failed
public <T> T registerMockComponent(org.jmock.Mockery mockery,
Type role,
String hint)
throws Exception
T - the component role classmockery - the JMock mockery instance to create the mock componentrole - the role of the component to registerhint - the hint of the component to register
Exception - if the registration failed
public <T> T registerMockComponent(org.jmock.Mockery mockery,
Type role)
throws Exception
T - the component role classmockery - the JMock mockery instance to create the mock componentrole - the role of the component to register
Exception - if the registration failed
public <T> T registerMockComponentWithId(org.jmock.Mockery mockery,
Type role,
String mockId)
throws Exception
T - the component role classmockery - the JMock mockery instance to create the mock componentrole - the role of the component to registermockId - the JMock id (this is needed when registering several mocks for the same interface)
Exception - if the registration failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||