Open GoogleCodeExporter opened 9 years ago
I use gwt 2.2 and test-util 0.28.8-SNAPSHOT.
Original comment by e06w...@gmail.com
on 16 Nov 2011 at 11:31
It the the @Key annotation which is not yet supported by gwt-test-utils. I will
fix this ASAP.
Thanks for this report.
Original comment by gael.laz...@gmail.com
on 16 Nov 2011 at 12:03
Thanks for replying.
After adding @DefaultStringValue under @key I could get rid of that.
ex :-
@Key("rates.view.ticker.ratePlanCode")
@DefaultStringValue("Test String")
String getRatePlnCode();
Original comment by e06w...@gmail.com
on 16 Nov 2011 at 12:25
Original comment by gael.laz...@gmail.com
on 11 Dec 2011 at 5:09
The @Key annotation is now supported by gwt-test-utils.
I've deployed a new 0.28.8-SNAPSHOT with the fix. Could you please give it a
try and post some feedback here so I could close the issue ?
Thanks !
Original comment by gael.laz...@gmail.com
on 11 Dec 2011 at 5:40
I use 0.36 last version with gwt2.4.0 .
The @Key annotation is not supported yet by gwt-test-utils.
Please ckeck to fix it.
thanks
Original comment by hajer.ak...@gmail.com
on 3 Apr 2012 at 7:25
mmmh this is weird. Checkout the MyConstantsTest
(http://code.google.com/p/gwt-test-utils/source/browse/src/framework/trunk/gwt-t
est-utils/src/test/java/com/googlecode/gwt/test/i18n/MyConstantsTest.java)
which works fine : The MyConstants.messageWithKey()
(http://code.google.com/p/gwt-test-utils/source/browse/src/framework/trunk/gwt-t
est-utils/src/test/java/com/googlecode/gwt/test/i18n/MyConstants.java) uses a
@Key annotation, and it works very well.
Could you please provide a simple application with a unit test which fails ?
Thank you very much !
Original comment by gael.laz...@gmail.com
on 3 Apr 2012 at 10:04
I have seen this bug, it appears to be caused by
ConstantsWithLookupInvocationHandler not escaping periods in
getAskedMethod(Method,Object[]), thus a request for key "foo.bar" does not
result in a call to getMethod("foo_bar")
Original comment by rtuc...@gmail.com
on 9 May 2012 at 3:13
Assuming you have a @Key(foot.bar) int foo_bar() method, a call to
xxx.getInt("foo.bar") should result in a
java.util.MissingResourceException: Cannot find constant 'foo.bar'; expecting a
method name : you can only access the value with a getInt("foo_bar") call (I've
just tested it again).
Original comment by gael.laz...@gmail.com
on 19 May 2012 at 1:39
Original issue reported on code.google.com by
e06w...@gmail.com
on 16 Nov 2011 at 11:29