Memo-migrated‎ > ‎

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

posted Jan 24, 2014, 5:39 PM by Teng-Yok Lee   [ updated Jan 3, 2021, 12:49 AM ]
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().