Memo‎ > ‎

How to do Java unit tests for GWT-client side classes?

posted Jan 24, 2014, 5:39 PM by Teng-Yok Lee   [ updated Jan 24, 2014, 5:40 PM ]
Essentially now the JUnit test for the client side class (which should be in JavaScript and not testable by regular JUnit) can be done in 2 steps:

  1. Add the annotation @RunWith(GwtMockitoTestRunner.class) before the class.
  2. Create the class with GWT.create().

REF: https://github.com/google/gwtmockito

Comments