As more software engineers add unit testing to their everyday development regime, the concept of mock objects is becoming increasingly popular. Mock objects proxy more complicated objects, fulfilling their doppelganger's interface and behavior for testing purposes. Coding to interfaces instead of implementations is a best practice that applies equally well to POJOs and Web Services.
Web Services, too, are being added to our toolkit with increasing frequency. Building a true service-oriented architecture brings with it new challenges: how do you code against an external service? If that service is metered, how do you develop iteratively without using up your production budget in tests? How do you write assertions against asynchronous services? How do you capture performance metrics in your test suite?
These questions and more are answered in this talk. We will look at popular examples of SOAP, REST, and JSON-based web services. Not only will you gain exposure to the services offered by popular websites like Google, Yahoo, Amazon, and eBay, you'll learn how testing their services is just as easy as testing your own codebase.
© 1997 2008 Kovsky Conference Productions Inc.; All rights reserved.