simulating a slow database connection
843859Jun 2 2006 — edited Jun 5 2006Anyone aware of a java.sql.Connection decorator implementation that can be used to simulate a slow database? I suppose I could write one myself but one would think that something like this has been done before. I'm imagining a class that would wrap an arbitrary, existing Connection instance and would provide an adjustable range of a random delays incurred before various methods return. I suppose that the class would need to spawn wrappers for CallableStatement, PreparedStatement, etc. I wish to use this thing to get a feel for the responsiveness of my GUI under adverse conditions.