|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.spring.test.ApplicationContextMock org.apache.wicket.spring.injection.annot.test.AnnotApplicationContextMock
public class AnnotApplicationContextMock
Spring application context mock that does all the initialization required to setup an
AnnotSpringInjector
that will use this mock context as its source of beans.
Example
AnnotApplicationContextMock appctx = new AnnotApplicationContextMock(); appctx.putBean("contactDao", dao); WicketTester app = new WicketTester(); Page deletePage=new DeleteContactPage(new DummyHomePage(), 10));DeleteContactPage will have its dependencies initialized by the
AnnotSpringInjector
Field Summary |
---|
Fields inherited from interface org.springframework.beans.factory.BeanFactory |
---|
FACTORY_BEAN_PREFIX |
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver |
---|
CLASSPATH_ALL_URL_PREFIX |
Fields inherited from interface org.springframework.core.io.ResourceLoader |
---|
CLASSPATH_URL_PREFIX |
Constructor Summary | |
---|---|
AnnotApplicationContextMock()
Constructor |
Method Summary |
---|
Methods inherited from class org.apache.wicket.spring.test.ApplicationContextMock |
---|
containsBean, containsBeanDefinition, containsLocalBean, getAliases, getAutowireCapableBeanFactory, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getClassLoader, getDisplayName, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResource, getResources, getStartupDate, getType, isSingleton, publishEvent, putBean, putBean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotApplicationContextMock()
Sets up an AnnotSpringInjector
that will use this mock context as its source of beans
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |