This post originated from an RSS feed registered with Java Buzz
by Scott Delap.
Original Post: Developing Clients with Simulated Servers
Feed Title: ClientJava.com
Feed URL: http://www.clientjava.com/archives/wireless_mobile.rdf
Feed Description: Client/Desktop Related Java Development
There is a very good article on Java.net about developing clients with simulated servers. I've worked on large scale client applications and will be the first to agree that simulating server functionality for testing is a pain. If you mock out the object on the server tier itself you still have startup and deployment delays. If you mock out data in the database your testing is just plain slow. As Johnathan suggests in the article the best option is to have mock stubs on your client tier itself. The key to all of this is good application design. Quoted from the article:
Client code should have no knowledge of the stubs, or whether it's connected to stub servers or remotely.
Check out the full article on Java.net for more details.