I'm new to the very concept of the Google Web Toolkit (GWT) and as far as I can tell its a Java API and toolset that allows you to code up your client-side code in Java, and at some point (as a part of the build or dynamically as HttpRequests come in) it generates client-side JS from your Java code (if I'm wrong on any of this please correct me!).
Assuming I'm more-or-less correct, I'm wondering how you unit test it!? Do you write JUnit tests for the Java code, or do you write JSUnit tests for the resultant/generated JavaScript? And if you use JSUnit, how do you know the names and inner-workings of the generated functions since GWT optimizes and minifies everything it outputs? Thanks in advance!