None of the test methods get called, I'm sysout'ing everywhere and stepping it through a debugger, it isn't being run at all. And I notice the output never says it gets run, only compiled.
Can you give me an example of one of your GWTTestCase's ? On Tue, Sep 1, 2009 at 1:48 AM, Mat Gessel <[email protected]> wrote: > > Which method never gets called? > > I would put breakpoints/asserts/System.out() in the following > locations to see how far it proceeds: > 1. start of test > 2. start of timer run() method > 3. SiteService.getPagedSongModelDataByUserId() > > Also, while you can use delayTestFinish() to test client/service > interaction, I find it much easier to debug--and faster to run--if I > test them separately. The async service is an interface which you can > easily mock. The following approach allows you to run the client code > synchronously. > > // testing client code > SiteService service = new MockServiceImpl(); > service.getPagedSongModelDataByUserId(...); // typically you would > call a client method which then calls the service... > service.getLastRequest(); // assert something w /this > service.respond(...); > > To test the service you just use a regular TestCase and call the RPC > method directly. > > -= Mat > > On Mon, Aug 31, 2009 at 7:08 PM, charlie<[email protected]> wrote: > > Hi all, I have a unit test shown here http://pastebin.com/m4e4596b1 . > > > > When using eclipse and Run as GWT Unit Test ( hosted mode ), the only > output > > I get is > > > > Starting HTTP on port 0 > > HTTP listening on port 58504 > > Compiling module com.charlie.MP3Player.JUnit > > Compiling 1 permutations > > Permutation compile succeeded > > Linking into www-test > > Link succeeded > > Compilation succeeded -- 10.163s > > > > I have a very obvious assertFalse(true); for every condition but it looks > > like it's never getting run ? Debugging it shows that my method never > gets > > called either. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
