Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-28

Add an option to turn off beans check in SpringBeanLocator

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ivaynberg Igor Vaynberg
            ingramchen Ingram Chen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment