Issue 15: demo compilation errors
Status:  Fixed
Owner: ----
Closed:  Sep 2010
Reported by ami4s...@gmail.com, Sep 13, 2010
Hello!

When I compile guit demo in I get in eclipse following gwt output:

Compiling module com.unnison.demo.FrameworkDemo
   Validating newly compiled units
      [ERROR] Errors in 'file:/D:/Guit/oldtest/com/unnison/demo/client/dynamic/TestDynamicPresenter.java'
         [ERROR] Line 14: No source code is available for type com.unnison.framework.junit.GuitTest; did you forget to inherit a required module?
         [ERROR] Line 34: No source code is available for type junit.framework.Assert; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/D:/Guit/oldtest/com/unnison/demo/client/microevents/TestMicroeventsPresenter.java'
         [ERROR] Line 13: No source code is available for type com.unnison.framework.junit.GuitTest; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/D:/Guit/oldtest/com/unnison/demo/client/complexplace/TestComplexPlacePresenter.java'
         [ERROR] Line 29: No source code is available for type com.unnison.framework.junit.GuitTest; did you forget to inherit a required module?
         [ERROR] Line 47: No source code is available for type junit.framework.Assert; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/D:/Guit/oldtest/com/unnison/demo/client/login/TestLoginPresenter.java'
         [ERROR] Line 14: No source code is available for type com.unnison.framework.junit.GuitTest; did you forget to inherit a required module?
         [ERROR] Line 33: No source code is available for type junit.framework.Assert; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/D:/Guit/oldtest/com/unnison/demo/client/jsonserializer/TestJsonSerializerPresenter.java'
         [ERROR] Line 20: No source code is available for type com.unnison.framework.junit.GuitTest; did you forget to inherit a required module?
         [ERROR] Line 56: No source code is available for type junit.framework.Assert; did you forget to inherit a required module?
   Compiling 6 permutations
      Compiling permutation 0...
      Compiling permutation 1...
      Compiling permutation 2...
      Compiling permutation 3...
      Compiling permutation 4...
      Compiling permutation 5...
   Compile of permutations succeeded
Linking into D:\Guit\war\demo.
   Link succeeded
   Compilation succeeded -- 37,172s

Tell me please how to fix it.

Thanks in advance.
Sep 13, 2010
Project Member #1 gal.dol...@gmail.com
Fixed.
The error is because the tests are in a "client" package, but the GuitTest and Assert classes are not client code.
I moved the tests the a non-client package, but this forced me to make all fields and handlers public when I will like them to be protected.

I didn't find a better solution. I will love to see this [https://code.google.com/p/google-web-toolkit/issues/detail?id=3769&colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars] but not only for method, also for entire classes.
Sep 14, 2010
Project Member #2 gal.dol...@gmail.com
I have restored the test code as it was before, but found a way to avoid to exceptions.
More information here: https://code.google.com/p/guit/wiki/Testing?ts=1284525884&updated=Testing
Status: Fixed