Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
10.0.0-M1
-
None
Description
There are several checks in Wicket-Spring integration code that checks whether the ApplicationContext is a sub-type of AbstractApplicationContext.
Depending on your usage of ApplicationContextMock it may lead to ClassCastException at SpringBeanLocator#getBeanDefinition().
Until now ApplicationContextMock did not extend from AbstractApplicationContext but it could be easily re-worked by delegating to an instance of DefaultListableBeanFactory that is used as a delegate. This way most of the ApplicationContextMock methods which currently throw UnsupportedOperationException could be implemented.