com.atlassian.jira.mock
Class ComponentManagerMocker

java.lang.Object
  extended by com.atlassian.jira.mock.ComponentManagerMocker

Deprecated. use ComponentAccessor instead of ComponentManager in your code, and the MockComponentContainer rule in the tests.

@Deprecated
public class ComponentManagerMocker
extends Object

Use this class to hack the heck out of the component manager so that it does not start the whole freaking world to satisfy a single unit test.


Constructor Summary
ComponentManagerMocker()
          Deprecated.  
 
Method Summary
<T> ComponentManagerMocker
addComponent(Class<T> componentClass, T compInstance)
          Deprecated.  
 void doMock()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentManagerMocker

public ComponentManagerMocker()
Deprecated. 
Method Detail

doMock

public void doMock()
Deprecated. 

addComponent

public <T> ComponentManagerMocker addComponent(Class<T> componentClass,
                                               T compInstance)
Deprecated. 


Copyright © 2002-2013 Atlassian. All Rights Reserved.