Re: Test Strategies for Modern GWT (i.e. Elemental2 etc)
AFAICT Elemental 2 doesn't really have any code to be tested (Java methods directly map to JS methods). You would test the browser API itself which browser vendors already do. So I would mock any elemental 2 class and use JUNIT to test whatever component/abstraction you build on top of elemental 2. And if elemental 2 has some @JsOverlay methods then elemental 2 should already have a test for it. What you should do anyways is end to end testing using webdriver/selenium to make sure the app experience does not change and UI behavior works as designed. IMHO these are the most important but also most time consuming tests. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Problem with RegularImmutableList and SingletonImmutableSet Deserialization
I solved it by moving the dependencies for gwt & guava-gwt to parent project of client, server and shared pojects On Sunday, September 17, 2017 at 2:39:44 PM UTC+2, ahmed ali wrote: > > I have a question regarding GWT RPC calls > > I'm using guava & guava-gwt version 22 and I inherited this module > > > When I call any service and the return type is Set then if the server > returns SingletonImmutableSet this exception is thrown > "com.google.gwt.user.client.rpc.SerializationException: > com.google.common.collect.SingletonImmutableSet/3246800781" > > same for RegularImmutableList with return type List > com.google.gwt.user.client.rpc.SerializationException: > com.google.common.collect.RegularImmutableList > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Problem with RegularImmutableList and SingletonImmutableSet Deserialization
I have a question regarding GWT RPC calls I'm using guava & guava-gwt version 22 and I inherited this module When I call any service and the return type is Set then if the server returns SingletonImmutableSet this exception is thrown "com.google.gwt.user.client.rpc.SerializationException: com.google.common.collect.SingletonImmutableSet/3246800781" same for RegularImmutableList with return type List com.google.gwt.user.client.rpc.SerializationException: com.google.common.collect.RegularImmutableList -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Test Strategies for Modern GWT (i.e. Elemental2 etc)
Hi, Has anyone got any good examples of how they are testing GWT code that is interacting with the browser APIs. Historically we just ignored that low level code as we either were using pre-existing Widgets that we implicitly trusted and for that limited amount of jsni or browser interaction that we wrote we just hand tested and limited change in that area. We then built abstractions ala MVP and tested the rest of the app (which was typically 95% of the code anyhoo). Now that we are moving to Elemental2 there are fewer abstractions and it would be nice to test the low level code. In particular small little elements. So how do we people do this? Options that we came up with: * Ignore. build abstractions and use manual testing where required. * GWTTestCase - although last time we tried it (maybe ~2010) it was nothing like a real browser and rather slow. * Compile code and tests to javascript and figure out a way to run them in a real browser and scrape the results. * Compile code to javascript and use webdriver/selenium to interact with browser. * Ignore for now and wait till J2CL and use js ecosystems solutions. * Use something like powermock to mock natives etc and run them in jre Anyone got any examples of this working or can offer any suggestions? In particular I am interested to see examples that use Elemental2 or other jsinterop code. -- Cheers, Peter Donald -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.