[sldev] How to write unit test For messaging system
Peekay Semyorka
peekay at targetomega.com
Fri Mar 30 16:12:15 PDT 2007
"Gaurav Sharma" <gsharma at adroit-inc.com> wrote:
> I am working on Unit Test Cases for SL client and I would like anyone to
> provide some information regarding , how to write Test cases for message
> system without actually connecting to server.
> Any suggestion will be helpful !
Ideally one unit tests by using mock objects, but that might entail
refactoring quite a bit of the code so real services can be replaced by
mock services. Otherwise you're left with making a small test server
and/or some type of a loopback system (to test against itself.)
-peekay
More information about the SLDev
mailing list