[ 
https://issues.apache.org/jira/browse/WICKET-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joni Freeman updated WICKET-28:
-------------------------------

    Attachment: wicket-spring-fail-fast-patch.txt

Yes, it is a smart default, works well in production mode but is major pita 
when unit testing. The attached patch adds a method (setFailFast) which can be 
used to disable fail fast from AnnotProxyFieldValueFactory.


> Add an option to turn off beans check in SpringBeanLocator
> ----------------------------------------------------------
>
>                 Key: WICKET-28
>                 URL: https://issues.apache.org/jira/browse/WICKET-28
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket-spring
>            Reporter: Ingram Chen
>         Attachments: wicket-spring-fail-fast-patch.txt
>
>
> In wicket 1.2.3, SpringBeanLocator.lookupSpringBean() force check all 
> injected bean:
>         if (beans.size() == 0)
>             throw new IllegalStateException("bean of type [" + clazz.getName()
>                     + "] not found");
>      This check is good for production. But in test environment, it would be 
> better that
> we can turn off this check somewhere since test case does not always
> prepare non-tested bean. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to