Or to force the locale on the testing session.
Martijn
On Thu, May 29, 2008 at 7:00 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> easiest thing is probably to force the locale on the integration server
>
> -igor
>
> On Thu, May 29, 2008 at 6:05 AM, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
>> Hi.
>>
>> If I make an assert like:
>>
>> tester.assertErrorMessages(new String[] { "Field 'code' is required." });
>>
>> the tests fails on the continuous integrator couse locale on that
>> machine is IT and the error message is in italian. On my machine it
>> works. This is a problem, also for I18N.
>> I would like to write something like
>>
>> assertErrorMessagesContains(...);
>>
>> This test will be enough and more less breackable. But I cannot get
>> the error message in any other way, if I do something like:
>>
>> FeedbackPanel feedback = (FeedbackPanel)
>> tester.getComponentFromLastRenderedPage("feedback");
>> FeedbackMessage feedbackMessage =
>> feedback.getFeedbackMessage();
>> assertEquals("", feedbackMessage);
>>
>> the tests fails and tell me that feedbackMessage is null...
>> Same if I do: renderedPage.getFeedbackMessage();
>>
>> BTW, the feedback message pass the assertErrorMessages above and at
>> runtime I can see the message in the 'feedback' field.
>>
>> How may I get the feedbackPanel messages from a test?
>>
>> --
>> Daniele Dellafiore
>> http://blog.ildella.net/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]