On Fri, Nov 12, 2010 at 3:12 PM, Christian Goudreau
<[email protected]> wrote:
> I know one that is working really well for me. Though I actually Mock
> MyLocalizableResource.
> I simply use Gin to inject MyLocalizableResource instead of Gwt.create().
> Then I use Jukito to automatically mock every interface unbinded with
> mockito.
> More info on Gin gwt.create() magic:
> http://code.google.com/p/google-gin/wiki/GinTutorial#Deferred_Binding
> Cheers,


Thanks for that hint :) - I was searching for a nice mocking lib -
jukito seems to way cooler than easymock...

That was the approach I took right now - the problem is, that I do not
get the "real" message of the interface... I would like to get "real"
message for a certain language... Exactly what GWT.create does - but
without the need for a GWTTestCase...

Maybe I got you wrong, but does your approach really bind the
properties files of a certain language to the respective
LocalizedResource?


Thanks!



Cheers,

Raphael

>
> On Fri, Nov 12, 2010 at 8:53 AM, Raphael André Bauer
> <[email protected]> wrote:
>>
>> Hi,
>>
>>
>> I want to test my i18n GWT application. We got a MyLocalizableResource
>> extends com.google.gwt.i18n.client.Messages connected to properties
>> files representing different languages.
>>
>> I can test that using a GWTTestCase and GWT.create(MyLocalizableResource).
>>
>> But I want to test that setup in a fast JUnit Test. Is there a simple
>> way to "bind" the properties files to MyLocalizableResource without
>> the need for a GWTTestCase?
>>
>>
>> Many thanks in advance :)
>>
>> Cheers,
>>
>>
>>
>> Raphael
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> --
> Christian Goudreau
> www.arcbees.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to