You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Daniel Zwicker (JIRA)" <ji...@apache.org> on 2013/03/20 09:41:16 UTC
[jira] [Commented] (WICKET-5100) Make it possible to replace the
INonContextualManager in wicket-cdi for mock frameworks
[ https://issues.apache.org/jira/browse/WICKET-5100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13607398#comment-13607398 ]
Daniel Zwicker commented on WICKET-5100:
----------------------------------------
Yes, i know this method. But CdiConfiguration has a assertion for the BeanManager and in the CdiConfiguration.configure(Application) the BeanManager is checked again! So this method is useless. And you have to call CdiConfiguration.configure(Application) to register all the listeners for injection points.
> Make it possible to replace the INonContextualManager in wicket-cdi for mock frameworks
> ----------------------------------------------------------------------------------------
>
> Key: WICKET-5100
> URL: https://issues.apache.org/jira/browse/WICKET-5100
> Project: Wicket
> Issue Type: Wish
> Components: wicket-cdi
> Reporter: Daniel Zwicker
> Assignee: Igor Vaynberg
>
> We are using mockito for out unit tests. Mockito has introduced @InjectMocks for injections mocks in CDI-Beans. I have tried to setup the wicket-cdi to use the 'mockito-injection' but ended up with copy the classes to rewrite just some lines. (just replace the INonContextualManager and omit the BeanManager).
> Perhaps the cdi-module can be refactored to use some kind of factory to replace the INonContextualManager.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira