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]

Reply via email to