use of org.apache.wicket.spring.test.SpringContextLocatorMock in project wicket by apache.
the class SpringBeanLocatorTest method testContextNotFound.
/**
* tests error when context not found
*/
@Test
public void testContextNotFound() {
SpringContextLocatorMock ctxLocator = new SpringContextLocatorMock(null);
SpringBeanLocator locator = new SpringBeanLocator(Bean.class, ctxLocator);
try {
locator.locateProxyTarget();
} catch (IllegalStateException e) {
// noop
}
}
use of org.apache.wicket.spring.test.SpringContextLocatorMock in project wicket by apache.
the class SpringBeanLocatorTest method before.
/**
*/
@Before
public void before() {
ctx = new ApplicationContextMock();
ctxLocator = new SpringContextLocatorMock(ctx);
}
Aggregations