I'm putting together a fairly simple app that uses JDBC to access a database. In the development process I'm using JUnit to provide the usual unit testing but the way I'm doing it is proving a bit unwieldy when it comes to testing data connections, data retrieval, etc.
Rather than spend a week reinventing a (wonky) wheel - instead of developing the app, could someone point me to a site that covers this sort of thing. I've had a quick look at Mock Objects but the solution appears to be more complex than the problem. Are they worth persevering with or are other simpler techniques available?
I used MockObjects for testing JDBC and I found that it works. It takes a bit of work to figure out how to write your code to work with MockObjects but the end result is better code quality.
I don't know of other techniques but if anyone knows of some, please let us know! :)