On Fri, Sep 6, 2013 at 7:41 PM, Martin Dietze <d...@fh-wedel.de> wrote:

> On Fri, September 06, 2013, Martin Grigorov wrote:
>
> > 2. #testAddingAndSwitchingFields
> >
> > you look at the wrong test
> > we cannot help you when we have the wrong source given
>
> Yes, sorry, I picked the wrong stacktrace, however they're all
> identical anyway. The method 'testAddingAndSwitchingFields'
> starts the same way as 'testRender':
>
> |    public void testAddingAndSwitchingFields( final int numberOfFields,
> final List<String> switchButtonPaths, final List<String> expectedFieldOrder
> ) {
> |        final FeedbackFormSpec formSpec =
> FeedbackFormSpecTestFactory.createEmpty();
> |        this.tester.startPage( new FeedbackFormSpecEditorTestPage(
> formSpec ) );
> |        // ...
>
> I.e., the stacktrace below is exactly the same from the moment
> I instanciate the test page, and the super constructor is
> called.
>
> Here's the stacktrace again:
>
> org.apache.wicket.WicketRuntimeException: No RequestCycle is currently set!
> org.apache.wicket.Component.getRequest(Component.java:1803)
> org.apache.wicket.markup.html.WebPage.dirty(WebPage.java:318)
> org.apache.wicket.Page.dirty(Page.java:249)
> org.apache.wicket.Page.componentStateChanging(Page.java:926)
> org.apache.wicket.Component.addStateChange(Component.java:3527)
> org.apache.wicket.Behaviors.add(Behaviors.java:55)
> org.apache.wicket.Component.add(Component.java:4511)
>
> com.mycompany.request.WicketContainerChecker.onInstantiation(WicketContainerChecker.java:48)
>

What is this doing ?
Does it start a new thread by chance ?
Or doing something like: ThreadContext.detach() /
ThreadContext.setRequestCycle(null)


>
> org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:38)
>
> org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:34)
>
> org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)
>
> org.apache.wicket.application.ComponentInstantiationListenerCollection.onInstantiation(ComponentInstantiationListenerCollection.java:33)
> org.apache.wicket.Component.<init>(Component.java:683)
> org.apache.wicket.MarkupContainer.<init>(MarkupContainer.java:121)
> org.apache.wicket.Page.<init>(Page.java:168)
> org.apache.wicket.Page.<init>(Page.java:132)
> org.apache.wicket.markup.html.WebPage.<init>(WebPage.java:76)
>
> com.mycompany.ui.components.types.FeedbackFormSpecEditorTestPage.<init>(FeedbackFormSpecEditorTestPage.java:38)
>
> com.mycompany.ui.components.types.FeedbackFormSpecEditorTest.testAddingAndSwitchingFields(FeedbackFormSpecEditorTest.java:80)
>
> M'bert
>
> --
> ----------- / http://herbert.the-little-red-haired-girl.org /
> -------------
> =+=
> I am not in a hurry. I prefer to cross the town.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to