Reviewers: scottb, amitmanjhi,

Description:
This patch treats any GWTTestCase-derived classes that return 'null'
from getModuleName() as if they were simply pure Java tests.

Why does this matter? Suppose you're writing tests for code that has
both a pure Java implementation and a super-sourced version of the same
types. Naturally, you want to re-use the same tests for both
implementations. With this patch, you can have the common tests extend
GWTTestCase but return 'null' from getModuleName(), thus causing the
pure Java version of the code to be tested. Then you can create a
subclass that actually does return a module name, which causes the same
tests to run in a proper GWT environment.


Please review this at http://gwt-code-reviews.appspot.com/47804

Affected files:
   user/src/com/google/gwt/junit/client/GWTTestCase.java
   user/src/com/google/gwt/junit/tools/GWTTestSuite.java



--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to