You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Vit Rozkovec <ro...@email.cz> on 2013/10/06 17:43:55 UTC

WicketTester with Atmosphere

How is it possible to unit test Wicket application that uses Atmosphere?

When I run the application everything is ok, when testing, see excerpt 
of the stacktrace -

org.apache.wicket.WicketRuntimeException: There is no Atmosphere 
BroadcasterFactory configured. Did you include the atmosphere.xml 
configuration file and configured AtmosphereServlet?
     at 
org.apache.wicket.atmosphere.EventBus.lookupDefaultBroadcaster(EventBus.java:131)
     at org.apache.wicket.atmosphere.EventBus.<init>(EventBus.java:123)
     at 
name.berries.projects.doprava42.DopravaApplication.init(DopravaApplication.java:144)
.....


I'm creating the EventBus in the init() method as is done in the examples:
         eventBus = new EventBus(this);
eventBus.getParameters().setTransport(AtmosphereTransport.STREAMING);
eventBus.getParameters().setLogLevel(AtmosphereLogLevel.DEBUG);


How can I use WicketTester along with properly setted up Atmosphere 
application (using AtmosphereServlet)?


Thank you.
Vit

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: WicketTester with Atmosphere

Posted by Vit Rozkovec <ro...@email.cz>.
In normal production mode everything is ok,
but the problem is when unittesting atmospherised wicket application 
with WicketTester as application trips on init() method when 
inicializing EventBus.
And I did not wanted to check in the code whether I am in test mode to 
disable atmosphere calls.




On 8.10.2013 12:02, francois meillet wrote:
> The WicketRuntimeException says that there is no Atmosphere
> BroadcasterFactory configured
>
>
> On Tue, Oct 8, 2013 at 11:58 AM, Martin Grigorov <mg...@apache.org>wrote:
>
>> On Tue, Oct 8, 2013 at 12:55 PM, francois meillet <
>> francois.meillet@gmail.com> wrote:
>>
>>> Did you include the atmosphere.xml configuration file and configured the
>>> AtmosphereServlet ?
>>>
>> He asks about WicketTester+Atmosphere.
>>
>>
>>> François
>>>
>>>
>>> On Tue, Oct 8, 2013 at 11:26 AM, Vit Rozkovec <ro...@email.cz>
>>> wrote:
>>>
>>>> Any hints, please?
>>>>
>>>> Vit
>>>>
>>>>
>>>> On 6.10.2013 17:43, Vit Rozkovec wrote:
>>>>
>>>>> How is it possible to unit test Wicket application that uses
>> Atmosphere?
>>>>> When I run the application everything is ok, when testing, see excerpt
>>> of
>>>>> the stacktrace -
>>>>>
>>>>> org.apache.wicket.**WicketRuntimeException: There is no Atmosphere
>>>>> BroadcasterFactory configured. Did you include the atmosphere.xml
>>>>> configuration file and configured AtmosphereServlet?
>>>>>      at org.apache.wicket.atmosphere.**EventBus.**
>>>>> lookupDefaultBroadcaster(**EventBus.java:131)
>>>>>      at org.apache.wicket.atmosphere.**EventBus.<init>(EventBus.java:**
>>>>> 123)
>>>>>      at name.berries.projects.**doprava42.DopravaApplication.**
>>>>> init(DopravaApplication.java:**144)
>>>>> .....
>>>>>
>>>>>
>>>>> I'm creating the EventBus in the init() method as is done in the
>>> examples:
>>>>>          eventBus = new EventBus(this);
>>>>>
>>> eventBus.getParameters().**setTransport(**AtmosphereTransport.STREAMING)*
>>>>> *;
>>>>> eventBus.getParameters().**setLogLevel(**AtmosphereLogLevel.DEBUG);
>>>>>
>>>>>
>>>>> How can I use WicketTester along with properly setted up Atmosphere
>>>>> application (using AtmosphereServlet)?
>>>>>
>>>>>
>>>>> Thank you.
>>>>> Vit
>>>>>
>>>>>
>>> ------------------------------**------------------------------**---------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<
>>> users-unsubscribe@wicket.apache.org>
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>> ------------------------------**------------------------------**---------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<
>>> users-unsubscribe@wicket.apache.org>
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: WicketTester with Atmosphere

Posted by Vit Rozkovec <ro...@email.cz>.
Ok, so I'll have to either introduce conditions in the code to check if 
I am running the application in test mode
or use something else like a selenium perhaps..
Thanks anyway.

On 8.10.2013 14:08, Martin Grigorov wrote:
> WebSocketTester is for Native WebSockets, not for Wicket-Atmosphere
> integration.
>
>
>> v.
>>
>>
>> On 8.10.2013 12:09, Martin Grigorov wrote:
>>
>>> Yes, because WicketTester doesn't use web.xml/atmosphere.xml.
>>> The bootstrap of Atmosphere should be done manually. But I'm not sure that
>>> even this will be enough. WicketTester doesn't do real http calls, so
>>> Atmosphere won't be able to process them.
>>>
>>> You can see WebSocketTester in Native WebSocket module. It works like
>>> WicketTester.
>>>
>>>
>>> On Tue, Oct 8, 2013 at 1:02 PM, francois meillet <
>>> francois.meillet@gmail.com
>>>
>>>> wrote:
>>>> The WicketRuntimeException says that there is no Atmosphere
>>>> BroadcasterFactory configured
>>>>
>>>>
>>>> On Tue, Oct 8, 2013 at 11:58 AM, Martin Grigorov <mgrigorov@apache.org
>>>>
>>>>> wrote:
>>>>> On Tue, Oct 8, 2013 at 12:55 PM, francois meillet <
>>>>> francois.meillet@gmail.com> wrote:
>>>>>
>>>>>   Did you include the atmosphere.xml configuration file and configured
>>>>> the
>>>>> AtmosphereServlet ?
>>>>>>   He asks about WicketTester+Atmosphere.
>>>>>
>>>>>   François
>>>>>>
>>>>>> On Tue, Oct 8, 2013 at 11:26 AM, Vit Rozkovec <ro...@email.cz>
>>>>>> wrote:
>>>>>>
>>>>>>   Any hints, please?
>>>>>>> Vit
>>>>>>>
>>>>>>>
>>>>>>> On 6.10.2013 17:43, Vit Rozkovec wrote:
>>>>>>>
>>>>>>>   How is it possible to unit test Wicket application that uses
>>>>>>> Atmosphere?
>>>>>> When I run the application everything is ok, when testing, see
>>>>>>> excerpt
>>>>> of
>>>>>>> the stacktrace -
>>>>>>>> org.apache.wicket.****WicketRuntimeException: There is no Atmosphere
>>>>>>>> BroadcasterFactory configured. Did you include the atmosphere.xml
>>>>>>>> configuration file and configured AtmosphereServlet?
>>>>>>>>       at org.apache.wicket.atmosphere.****EventBus.**
>>>>>>>> lookupDefaultBroadcaster(****EventBus.java:131)
>>>>>>>>       at
>>>>>>>>
>>>>>>> org.apache.wicket.atmosphere.****EventBus.<init>(EventBus.**java:**
>>>>>   123)
>>>>>>>>       at name.berries.projects.****doprava42.DopravaApplication.****
>>>>>>>> init(DopravaApplication.java:****144)
>>>>>>>> .....
>>>>>>>>
>>>>>>>>
>>>>>>>> I'm creating the EventBus in the init() method as is done in the
>>>>>>>>
>>>>>>> examples:
>>>>>>>           eventBus = new EventBus(this);
>>>>>>>>   eventBus.getParameters().****setTransport(****
>>>> AtmosphereTransport.STREAMING)***
>>>>
>>>>>   *;
>>>>>>>> eventBus.getParameters().****setLogLevel(****
>>>>>>>> AtmosphereLogLevel.DEBUG);
>>>>>>>>
>>>>>>>>
>>>>>>>> How can I use WicketTester along with properly setted up Atmosphere
>>>>>>>> application (using AtmosphereServlet)?
>>>>>>>>
>>>>>>>>
>>>>>>>> Thank you.
>>>>>>>> Vit
>>>>>>>>
>>>>>>>>
>>>>>>>>   ------------------------------****----------------------------**
>>>> --**---------
>>>>
>>>>>   To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.org<http://apache.org>
>>>>>>>> <
>>>>>>>>
>>>>>>> users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>>>>>>>
>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>   ------------------------------****----------------------------**
>>>>> --**---------
>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.org<http://apache.org>
>>>>>>> <
>>>>>>>
>>>>>> users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>>
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: WicketTester with Atmosphere

Posted by Martin Grigorov <mg...@apache.org>.
On Tue, Oct 8, 2013 at 2:44 PM, Vit Rozkovec <ro...@email.cz> wrote:

>
> Thank you, I'll check it out.
>

WebSocketTester is for Native WebSockets, not for Wicket-Atmosphere
integration.


> v.
>
>
> On 8.10.2013 12:09, Martin Grigorov wrote:
>
>> Yes, because WicketTester doesn't use web.xml/atmosphere.xml.
>> The bootstrap of Atmosphere should be done manually. But I'm not sure that
>> even this will be enough. WicketTester doesn't do real http calls, so
>> Atmosphere won't be able to process them.
>>
>> You can see WebSocketTester in Native WebSocket module. It works like
>> WicketTester.
>>
>>
>> On Tue, Oct 8, 2013 at 1:02 PM, francois meillet <
>> francois.meillet@gmail.com
>>
>>> wrote:
>>> The WicketRuntimeException says that there is no Atmosphere
>>> BroadcasterFactory configured
>>>
>>>
>>> On Tue, Oct 8, 2013 at 11:58 AM, Martin Grigorov <mgrigorov@apache.org
>>>
>>>> wrote:
>>>> On Tue, Oct 8, 2013 at 12:55 PM, francois meillet <
>>>> francois.meillet@gmail.com> wrote:
>>>>
>>>>  Did you include the atmosphere.xml configuration file and configured
>>>>>
>>>> the
>>>
>>>> AtmosphereServlet ?
>>>>>
>>>>>  He asks about WicketTester+Atmosphere.
>>>>
>>>>
>>>>  François
>>>>>
>>>>>
>>>>> On Tue, Oct 8, 2013 at 11:26 AM, Vit Rozkovec <ro...@email.cz>
>>>>> wrote:
>>>>>
>>>>>  Any hints, please?
>>>>>>
>>>>>> Vit
>>>>>>
>>>>>>
>>>>>> On 6.10.2013 17:43, Vit Rozkovec wrote:
>>>>>>
>>>>>>  How is it possible to unit test Wicket application that uses
>>>>>>>
>>>>>> Atmosphere?
>>>>
>>>>> When I run the application everything is ok, when testing, see
>>>>>>>
>>>>>> excerpt
>>>
>>>> of
>>>>>
>>>>>> the stacktrace -
>>>>>>>
>>>>>>> org.apache.wicket.****WicketRuntimeException: There is no Atmosphere
>>>>>>> BroadcasterFactory configured. Did you include the atmosphere.xml
>>>>>>> configuration file and configured AtmosphereServlet?
>>>>>>>      at org.apache.wicket.atmosphere.****EventBus.**
>>>>>>> lookupDefaultBroadcaster(****EventBus.java:131)
>>>>>>>      at
>>>>>>>
>>>>>> org.apache.wicket.atmosphere.****EventBus.<init>(EventBus.**java:**
>>>
>>>>  123)
>>>>>>>      at name.berries.projects.****doprava42.DopravaApplication.****
>>>>>>> init(DopravaApplication.java:****144)
>>>>>>> .....
>>>>>>>
>>>>>>>
>>>>>>> I'm creating the EventBus in the init() method as is done in the
>>>>>>>
>>>>>> examples:
>>>>>
>>>>>>          eventBus = new EventBus(this);
>>>>>>>
>>>>>>>  eventBus.getParameters().****setTransport(****
>>> AtmosphereTransport.STREAMING)***
>>>
>>>>  *;
>>>>>>> eventBus.getParameters().****setLogLevel(****
>>>>>>> AtmosphereLogLevel.DEBUG);
>>>>>>>
>>>>>>>
>>>>>>> How can I use WicketTester along with properly setted up Atmosphere
>>>>>>> application (using AtmosphereServlet)?
>>>>>>>
>>>>>>>
>>>>>>> Thank you.
>>>>>>> Vit
>>>>>>>
>>>>>>>
>>>>>>>  ------------------------------****----------------------------**
>>> --**---------
>>>
>>>>  To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.org<http://apache.org>
>>>>>>> <
>>>>>>>
>>>>>> users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>>>>> >
>>>>>
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>  ------------------------------****----------------------------**
>>>> --**---------
>>>>
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.org<http://apache.org>
>>>>>> <
>>>>>>
>>>>> users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>>>>> >
>>>>>
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>>>>>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: WicketTester with Atmosphere

Posted by Vit Rozkovec <ro...@email.cz>.
Thank you, I'll check it out.
v.

On 8.10.2013 12:09, Martin Grigorov wrote:
> Yes, because WicketTester doesn't use web.xml/atmosphere.xml.
> The bootstrap of Atmosphere should be done manually. But I'm not sure that
> even this will be enough. WicketTester doesn't do real http calls, so
> Atmosphere won't be able to process them.
>
> You can see WebSocketTester in Native WebSocket module. It works like
> WicketTester.
>
>
> On Tue, Oct 8, 2013 at 1:02 PM, francois meillet <francois.meillet@gmail.com
>> wrote:
>> The WicketRuntimeException says that there is no Atmosphere
>> BroadcasterFactory configured
>>
>>
>> On Tue, Oct 8, 2013 at 11:58 AM, Martin Grigorov <mgrigorov@apache.org
>>> wrote:
>>> On Tue, Oct 8, 2013 at 12:55 PM, francois meillet <
>>> francois.meillet@gmail.com> wrote:
>>>
>>>> Did you include the atmosphere.xml configuration file and configured
>> the
>>>> AtmosphereServlet ?
>>>>
>>> He asks about WicketTester+Atmosphere.
>>>
>>>
>>>> François
>>>>
>>>>
>>>> On Tue, Oct 8, 2013 at 11:26 AM, Vit Rozkovec <ro...@email.cz>
>>>> wrote:
>>>>
>>>>> Any hints, please?
>>>>>
>>>>> Vit
>>>>>
>>>>>
>>>>> On 6.10.2013 17:43, Vit Rozkovec wrote:
>>>>>
>>>>>> How is it possible to unit test Wicket application that uses
>>> Atmosphere?
>>>>>> When I run the application everything is ok, when testing, see
>> excerpt
>>>> of
>>>>>> the stacktrace -
>>>>>>
>>>>>> org.apache.wicket.**WicketRuntimeException: There is no Atmosphere
>>>>>> BroadcasterFactory configured. Did you include the atmosphere.xml
>>>>>> configuration file and configured AtmosphereServlet?
>>>>>>      at org.apache.wicket.atmosphere.**EventBus.**
>>>>>> lookupDefaultBroadcaster(**EventBus.java:131)
>>>>>>      at
>> org.apache.wicket.atmosphere.**EventBus.<init>(EventBus.java:**
>>>>>> 123)
>>>>>>      at name.berries.projects.**doprava42.DopravaApplication.**
>>>>>> init(DopravaApplication.java:**144)
>>>>>> .....
>>>>>>
>>>>>>
>>>>>> I'm creating the EventBus in the init() method as is done in the
>>>> examples:
>>>>>>          eventBus = new EventBus(this);
>>>>>>
>> eventBus.getParameters().**setTransport(**AtmosphereTransport.STREAMING)*
>>>>>> *;
>>>>>> eventBus.getParameters().**setLogLevel(**AtmosphereLogLevel.DEBUG);
>>>>>>
>>>>>>
>>>>>> How can I use WicketTester along with properly setted up Atmosphere
>>>>>> application (using AtmosphereServlet)?
>>>>>>
>>>>>>
>>>>>> Thank you.
>>>>>> Vit
>>>>>>
>>>>>>
>> ------------------------------**------------------------------**---------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<
>>>> users-unsubscribe@wicket.apache.org>
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>> ------------------------------**------------------------------**---------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<
>>>> users-unsubscribe@wicket.apache.org>
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: WicketTester with Atmosphere

Posted by Martin Grigorov <mg...@apache.org>.
Yes, because WicketTester doesn't use web.xml/atmosphere.xml.
The bootstrap of Atmosphere should be done manually. But I'm not sure that
even this will be enough. WicketTester doesn't do real http calls, so
Atmosphere won't be able to process them.

You can see WebSocketTester in Native WebSocket module. It works like
WicketTester.


On Tue, Oct 8, 2013 at 1:02 PM, francois meillet <francois.meillet@gmail.com
> wrote:

> The WicketRuntimeException says that there is no Atmosphere
> BroadcasterFactory configured
>
>
> On Tue, Oct 8, 2013 at 11:58 AM, Martin Grigorov <mgrigorov@apache.org
> >wrote:
>
> > On Tue, Oct 8, 2013 at 12:55 PM, francois meillet <
> > francois.meillet@gmail.com> wrote:
> >
> > > Did you include the atmosphere.xml configuration file and configured
> the
> > > AtmosphereServlet ?
> > >
> >
> > He asks about WicketTester+Atmosphere.
> >
> >
> > >
> > > François
> > >
> > >
> > > On Tue, Oct 8, 2013 at 11:26 AM, Vit Rozkovec <ro...@email.cz>
> > > wrote:
> > >
> > > > Any hints, please?
> > > >
> > > > Vit
> > > >
> > > >
> > > > On 6.10.2013 17:43, Vit Rozkovec wrote:
> > > >
> > > >> How is it possible to unit test Wicket application that uses
> > Atmosphere?
> > > >>
> > > >> When I run the application everything is ok, when testing, see
> excerpt
> > > of
> > > >> the stacktrace -
> > > >>
> > > >> org.apache.wicket.**WicketRuntimeException: There is no Atmosphere
> > > >> BroadcasterFactory configured. Did you include the atmosphere.xml
> > > >> configuration file and configured AtmosphereServlet?
> > > >>     at org.apache.wicket.atmosphere.**EventBus.**
> > > >> lookupDefaultBroadcaster(**EventBus.java:131)
> > > >>     at
> org.apache.wicket.atmosphere.**EventBus.<init>(EventBus.java:**
> > > >> 123)
> > > >>     at name.berries.projects.**doprava42.DopravaApplication.**
> > > >> init(DopravaApplication.java:**144)
> > > >> .....
> > > >>
> > > >>
> > > >> I'm creating the EventBus in the init() method as is done in the
> > > examples:
> > > >>         eventBus = new EventBus(this);
> > > >>
> > >
> eventBus.getParameters().**setTransport(**AtmosphereTransport.STREAMING)*
> > > >> *;
> > > >> eventBus.getParameters().**setLogLevel(**AtmosphereLogLevel.DEBUG);
> > > >>
> > > >>
> > > >> How can I use WicketTester along with properly setted up Atmosphere
> > > >> application (using AtmosphereServlet)?
> > > >>
> > > >>
> > > >> Thank you.
> > > >> Vit
> > > >>
> > > >>
> > >
> ------------------------------**------------------------------**---------
> > > >> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<
> > > users-unsubscribe@wicket.apache.org>
> > > >> For additional commands, e-mail: users-help@wicket.apache.org
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > ------------------------------**------------------------------**---------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<
> > > users-unsubscribe@wicket.apache.org>
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> >
>

Re: WicketTester with Atmosphere

Posted by francois meillet <fr...@gmail.com>.
The WicketRuntimeException says that there is no Atmosphere
BroadcasterFactory configured


On Tue, Oct 8, 2013 at 11:58 AM, Martin Grigorov <mg...@apache.org>wrote:

> On Tue, Oct 8, 2013 at 12:55 PM, francois meillet <
> francois.meillet@gmail.com> wrote:
>
> > Did you include the atmosphere.xml configuration file and configured the
> > AtmosphereServlet ?
> >
>
> He asks about WicketTester+Atmosphere.
>
>
> >
> > François
> >
> >
> > On Tue, Oct 8, 2013 at 11:26 AM, Vit Rozkovec <ro...@email.cz>
> > wrote:
> >
> > > Any hints, please?
> > >
> > > Vit
> > >
> > >
> > > On 6.10.2013 17:43, Vit Rozkovec wrote:
> > >
> > >> How is it possible to unit test Wicket application that uses
> Atmosphere?
> > >>
> > >> When I run the application everything is ok, when testing, see excerpt
> > of
> > >> the stacktrace -
> > >>
> > >> org.apache.wicket.**WicketRuntimeException: There is no Atmosphere
> > >> BroadcasterFactory configured. Did you include the atmosphere.xml
> > >> configuration file and configured AtmosphereServlet?
> > >>     at org.apache.wicket.atmosphere.**EventBus.**
> > >> lookupDefaultBroadcaster(**EventBus.java:131)
> > >>     at org.apache.wicket.atmosphere.**EventBus.<init>(EventBus.java:**
> > >> 123)
> > >>     at name.berries.projects.**doprava42.DopravaApplication.**
> > >> init(DopravaApplication.java:**144)
> > >> .....
> > >>
> > >>
> > >> I'm creating the EventBus in the init() method as is done in the
> > examples:
> > >>         eventBus = new EventBus(this);
> > >>
> > eventBus.getParameters().**setTransport(**AtmosphereTransport.STREAMING)*
> > >> *;
> > >> eventBus.getParameters().**setLogLevel(**AtmosphereLogLevel.DEBUG);
> > >>
> > >>
> > >> How can I use WicketTester along with properly setted up Atmosphere
> > >> application (using AtmosphereServlet)?
> > >>
> > >>
> > >> Thank you.
> > >> Vit
> > >>
> > >>
> > ------------------------------**------------------------------**---------
> > >> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<
> > users-unsubscribe@wicket.apache.org>
> > >> For additional commands, e-mail: users-help@wicket.apache.org
> > >>
> > >>
> > >>
> > >
> > >
> ------------------------------**------------------------------**---------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<
> > users-unsubscribe@wicket.apache.org>
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
>

Re: WicketTester with Atmosphere

Posted by Martin Grigorov <mg...@apache.org>.
On Tue, Oct 8, 2013 at 12:55 PM, francois meillet <
francois.meillet@gmail.com> wrote:

> Did you include the atmosphere.xml configuration file and configured the
> AtmosphereServlet ?
>

He asks about WicketTester+Atmosphere.


>
> François
>
>
> On Tue, Oct 8, 2013 at 11:26 AM, Vit Rozkovec <ro...@email.cz>
> wrote:
>
> > Any hints, please?
> >
> > Vit
> >
> >
> > On 6.10.2013 17:43, Vit Rozkovec wrote:
> >
> >> How is it possible to unit test Wicket application that uses Atmosphere?
> >>
> >> When I run the application everything is ok, when testing, see excerpt
> of
> >> the stacktrace -
> >>
> >> org.apache.wicket.**WicketRuntimeException: There is no Atmosphere
> >> BroadcasterFactory configured. Did you include the atmosphere.xml
> >> configuration file and configured AtmosphereServlet?
> >>     at org.apache.wicket.atmosphere.**EventBus.**
> >> lookupDefaultBroadcaster(**EventBus.java:131)
> >>     at org.apache.wicket.atmosphere.**EventBus.<init>(EventBus.java:**
> >> 123)
> >>     at name.berries.projects.**doprava42.DopravaApplication.**
> >> init(DopravaApplication.java:**144)
> >> .....
> >>
> >>
> >> I'm creating the EventBus in the init() method as is done in the
> examples:
> >>         eventBus = new EventBus(this);
> >>
> eventBus.getParameters().**setTransport(**AtmosphereTransport.STREAMING)*
> >> *;
> >> eventBus.getParameters().**setLogLevel(**AtmosphereLogLevel.DEBUG);
> >>
> >>
> >> How can I use WicketTester along with properly setted up Atmosphere
> >> application (using AtmosphereServlet)?
> >>
> >>
> >> Thank you.
> >> Vit
> >>
> >>
> ------------------------------**------------------------------**---------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<
> users-unsubscribe@wicket.apache.org>
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >>
> >
> > ------------------------------**------------------------------**---------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<
> users-unsubscribe@wicket.apache.org>
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>

Re: WicketTester with Atmosphere

Posted by francois meillet <fr...@gmail.com>.
Did you include the atmosphere.xml configuration file and configured the
AtmosphereServlet ?

François


On Tue, Oct 8, 2013 at 11:26 AM, Vit Rozkovec <ro...@email.cz> wrote:

> Any hints, please?
>
> Vit
>
>
> On 6.10.2013 17:43, Vit Rozkovec wrote:
>
>> How is it possible to unit test Wicket application that uses Atmosphere?
>>
>> When I run the application everything is ok, when testing, see excerpt of
>> the stacktrace -
>>
>> org.apache.wicket.**WicketRuntimeException: There is no Atmosphere
>> BroadcasterFactory configured. Did you include the atmosphere.xml
>> configuration file and configured AtmosphereServlet?
>>     at org.apache.wicket.atmosphere.**EventBus.**
>> lookupDefaultBroadcaster(**EventBus.java:131)
>>     at org.apache.wicket.atmosphere.**EventBus.<init>(EventBus.java:**
>> 123)
>>     at name.berries.projects.**doprava42.DopravaApplication.**
>> init(DopravaApplication.java:**144)
>> .....
>>
>>
>> I'm creating the EventBus in the init() method as is done in the examples:
>>         eventBus = new EventBus(this);
>> eventBus.getParameters().**setTransport(**AtmosphereTransport.STREAMING)*
>> *;
>> eventBus.getParameters().**setLogLevel(**AtmosphereLogLevel.DEBUG);
>>
>>
>> How can I use WicketTester along with properly setted up Atmosphere
>> application (using AtmosphereServlet)?
>>
>>
>> Thank you.
>> Vit
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: WicketTester with Atmosphere

Posted by Vit Rozkovec <ro...@email.cz>.
Any hints, please?

Vit

On 6.10.2013 17:43, Vit Rozkovec wrote:
> How is it possible to unit test Wicket application that uses Atmosphere?
>
> When I run the application everything is ok, when testing, see excerpt 
> of the stacktrace -
>
> org.apache.wicket.WicketRuntimeException: There is no Atmosphere 
> BroadcasterFactory configured. Did you include the atmosphere.xml 
> configuration file and configured AtmosphereServlet?
>     at 
> org.apache.wicket.atmosphere.EventBus.lookupDefaultBroadcaster(EventBus.java:131)
>     at org.apache.wicket.atmosphere.EventBus.<init>(EventBus.java:123)
>     at 
> name.berries.projects.doprava42.DopravaApplication.init(DopravaApplication.java:144)
> .....
>
>
> I'm creating the EventBus in the init() method as is done in the 
> examples:
>         eventBus = new EventBus(this);
> eventBus.getParameters().setTransport(AtmosphereTransport.STREAMING);
> eventBus.getParameters().setLogLevel(AtmosphereLogLevel.DEBUG);
>
>
> How can I use WicketTester along with properly setted up Atmosphere 
> application (using AtmosphereServlet)?
>
>
> Thank you.
> Vit
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org