I want to write testable code and occasionally I bump into frameworks that make it challenging to unit test. Ideally I want to inject a service stub into my code then control the stub's behavior based on my testing needs. Commons Http Client from Jakarta facilitates integration with HTTP services but how to easily unit test code that depends on the HttpClient library? Turns out it's not that hard. I'll cover both 1.3 and the newer 1.4 … read on »
All posts tagged as “mocks”
About
My name is Florin Duroiu, I’m a software engineer in Berlin, Germany. This blog is about my day to day encounters with the challenges in software development and life at large.

Follow me on Twitter

Recent Comments
- Is it possible to get a list of nearby places while developing for ios devices? - Quora on A Comparison of Places APIs
- Pkopac on Upgrading to Spring 3.0
- host gis on Selecting location data from a spatial database
- Anonymous on Building a content aggregation service with node.js
- Mark Hanigen on Building a content aggregation service with node.js
-
Recent Posts
Tags
Agile AppEngine archeology bash cloud deployment computing ddd discoveries DSL EclipseLink genesis gis Google google maps hibernate hosting internet java Java AppEngine javascript JEE jpa JPA 2.0 mac mac dreamscometrue mapping mashups mobile movies opinions overlay productivity projects REST Ruby software spatial DB spring Spring Security TDD testing tools twitter weather web