But, IMO you better separate JS dependant code trying to move it to the 
view, leaving the presenter with plain java code. We use JsInterop for 
DTOs, and with a few limitations, it works seamlessly in Java and JS. But 
trying to execute a JS lib with a JsInterop "wrapper" in JRE sounds like 
cycle of transformations… Java to Js to Java. Or maybe I don't understand 
the use case. Just curious, what is the JS lib your presenters depends on? 
Because usually, this JS lib are used in the view. Anyways, gwt junit test 
using suites are fast (sometimes).

Just to clarify, IMO your problem is not using JsInterop in JRE tests, but 
accessing a JS lib. JsInterop can be used to expose your java code to JS or 
to access JS from your Java code, you only have problems in the second case 
because you need the JS lib, and I think that this is what GWT test are for.

On Friday, December 9, 2016 at 10:15:08 AM UTC+1, DavidN wrote:
>
> Is anybody working on a APT that can take JsInterop annotated classes of 
> native JS libraries and generate the needed code to access them from Java ?
> That would make my life much simpler when unit testing my presenters that 
> rely on JsInterop.
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to