The highest layer at which I would write this would be at the servlet layer.
Past that point, to me, it's no longer considered a "unit test" anyway and
becomes more brittle than would be worthwhile considering the hoops you'd
have to jump through to make something like this work with an IDE or a CI
server. There's scenarios you can't test anyway once it's live in
production; the XMPP stub locally isn't exactly the same, so whatever
additional confidence you would gain by testing it the way you describe with
the local XMPP URL over testing the servlet is minimal at best.

On Sat, Feb 13, 2010 at 1:44 AM, Dan <[email protected]> wrote:

> Hi,
>
> I've got an app that uses GAE's XMPP service.  I'd like to write some
> unit tests that verify the behavior of the server when it receives
> various messages through this service, but I'm not sure how.  Right
> now I simply test one layer deeper (i.e. I hook straight into the code
> that my servlet would invoke based on the content of the XMPP message
> it receives), but I'd like to be more thorough if possible.
>
> Is this possible?  I know that there's an XMPP tester built into the
> development console, so I assume there's a way.  Should I just have an
> HTTP client POST to localhost:8888/_ah/admin/xmpp or is there a better
> way?
>
> Thanks,
> Dan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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-appengine?hl=en.

Reply via email to