Revision: 10431
Author:   [email protected]
Date:     Fri Jul  8 07:45:22 2011
Log:      Bypass RfValidatorTest when no JDK is available.
Patch by: bobv
Review by: rchandia

Review at http://gwt-code-reviews.appspot.com/1465810

http://code.google.com/p/google-web-toolkit/source/detail?r=10431

Modified:
/trunk/user/test/com/google/web/bindery/requestfactory/apt/RfValidatorTest.java

=======================================
--- /trunk/user/test/com/google/web/bindery/requestfactory/apt/RfValidatorTest.java Fri Jul 8 03:40:53 2011 +++ /trunk/user/test/com/google/web/bindery/requestfactory/apt/RfValidatorTest.java Fri Jul 8 07:45:22 2011
@@ -131,6 +131,10 @@
    */
   private void testGeneratedMessages(Class<?>... classes) {
     JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
+    if (compiler == null) {
+      // This test is being run without a full JDK
+      return;
+    }

List<JavaFileObject> files = new ArrayList<JavaFileObject>(classes.length);
     for (Class<?> clazz : classes) {

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

Reply via email to