|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.joseluismartin.mock.EasyMockReplacer
public class EasyMockReplacer
A BeanFactoryPostProcessor that replaces configured interfaces with EasyMock Proxys for Testing.
| Constructor Summary | |
|---|---|
EasyMockReplacer()
|
|
| Method Summary | |
|---|---|
boolean |
add(Class<?> clazz)
Add Class to replace with EasyMock proxy |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory)
PostProcess BeanFactory and replace configured classes wiht EasyMocks proxys |
boolean |
remove(Class<?> clazz)
Remove Class from replaced classes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EasyMockReplacer()
| Method Detail |
|---|
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory)
throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessorfactory - the Spring factory
org.springframework.beans.BeansException - if postprocessor failpublic boolean add(Class<?> clazz)
clazz - Class to replace.
public boolean remove(Class<?> clazz)
clazz - Class to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||