Hi Paul, >From the looks of it, it seems that what you have is a GWTTestCase in which you are trying to test server-side code.
Although in some instances this could go through, it's not the recommended practice and isn't guaranteed to work. Server-side code should be tested using standard JUnit TestCase subclasses. For client-side testing, you can use the GWTTestCase class, and mock out server interactions to make sure your tests are isolated to specific units whose correctness you want to verify. Developer Guide - Testing with JUnit: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideJUnitCreation What I would suggest you do here is write a regular TestCase to test your server-side functionality. If you need to mock out certain UI widgets for the test, you can use the new GWTMockUtilities class along with the EasyMock framework to mock out widgets that are being manipulated in your pure Java unit tests. Hope that helps, -Sumit Chandel On Sun, Oct 26, 2008 at 3:42 AM, Paul van Hoven < [EMAIL PROTECTED]> wrote: > > I use GWT with Hibernate. For testing my server side Methods I use the > GWT-JUnit implementation. It works fine. > But now I've added a new Testcase. It first loads the data that is to > be expected as the answer by the server from the database (via > Hibernate) and subsequently compares the loaded data with the data > retrieved from the Server. Actually it is simply an assertEquals which > I want to perfrom. > > Now, when I want to execute the test I get these error messages that I > don't understand: > > > Compiling Java source files in module 'kiretose.Index.JUnit' > Removing units with errors > [ERROR] Errors in 'file:/path/to/my/project/kiretose/test/ > kiretose/client/PeopleServiceTest.java' > [ERROR] Line 70: No source code is available for type > org.hibernate.Session; did you forget to inherit a required module? > [ERROR] Line 70: No source code is available for type > org.hibernate.cfg.AnnotationConfiguration; did you forget to inherit a > required module? > [ERROR] Line 73: No source code is available for type > org.hibernate.Query; did you forget to inherit a required module? > [ERROR] Line 77: No source code is available for type > kiretose.server.universal.UserData; did you forget to inherit a > required module? > > > > Line 70 in PeopleServiceTest.java looks like this > Session session = new > AnnotationConfiguration().configure().buildSessionFactory().openSession(); > > What do I have to do? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
