Re: Wicket 6 - test ajax component.

2015-07-22 Thread gump lee
Thanks for your reply. I would try to use other testing method to test my
component.
On Jul 21, 2015 4:47 PM, andrea del bene an.delb...@gmail.com wrote:

 Hi,

 I don't think it's possible to send a specific key as this requires
 JavaScript code to be executed. But you can test AJAX events:

 //simulate an AJAX click event
 tester.executeAjaxEvent(label, click);


 See 'Testing AJAX events' in the userguide for more details.

 Andrea.

 On 20/07/2015 16:27, gump lee wrote:

 Dear All,

 Is it possible to write a unit test with WicketTester which I need to send
 Enter key to an AJAX component?


 Best regards,
 Gump



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




Re: Wicket 6 - test ajax component.

2015-07-21 Thread andrea del bene

Hi,

I don't think it's possible to send a specific key as this requires 
JavaScript code to be executed. But you can test AJAX events:


//simulate an AJAX click event
tester.executeAjaxEvent(label, click);


See 'Testing AJAX events' in the userguide for more details.

Andrea.

On 20/07/2015 16:27, gump lee wrote:

Dear All,

Is it possible to write a unit test with WicketTester which I need to send
Enter key to an AJAX component?


Best regards,
Gump




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



Wicket 6 - test ajax component.

2015-07-20 Thread gump lee
Dear All,

Is it possible to write a unit test with WicketTester which I need to send
Enter key to an AJAX component?


Best regards,
Gump