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<charlie.f...@gmail.com> 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 google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to