Elemental2 provides type checked access to browser APIs for Java
code. This is done by using closure extern files and generating
JsTypes, which are part of the new JsInterop specification that
is both implemented in GWT and J2CL.
The official Elemental2 project is available via
You have to create a a subclass of GwtTestCase which requires you to
specify a GWT module.
Here an example for java.util.Random emulation within GWT SDK:
https://github.com/gwtproject/gwt/blob/master/user/test/com/google/gwt/emultest/java/util/RandomTest.java
Once you run the GwtTestCase using
I have a library project (gwt-lib) containing a few emulated JRE classes.
The emulated classes work just fine in my gwt-app project but I would like
to have formal unit tests for them.
I'm using tbroyer's gwt-maven-plugin and have the emulated classes in
src/main/super.
Since these are JRE