Adds explicit pure Java test support to GWTTestCase, via a setter.

Calling setForcePureJava(true) on a GWTTestCase forces running the test in pure Java mode (non-GWT). This feature has the same effect than returning null in getModuleName(), with the major difference that it can be called by test suite builders (which cannot reliably subclass tests in a generic way).

Fixes bug: gwtSetUp and gwtTearDown should be called in pure Java mode.

Also hardens existing JUnit tests to check that GWTTestCase tests are run in client or pure Java mode, as appropriate.

Review by: scottb, amitmanjhi


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7600 8db76d5a-ed1c-0410-87a9-c151d255dfc7
8 files changed