|
From: Goyal, G. (G. 097903) <L0...@ex...> - 2001-09-20 20:31:16
|
Hi, Been working on implementing mock objects in our project. Was able to use MockConnection and MockStatement, but needed to make minor modifications on MockResultSet. The problem that I am facing now is this. One of the methods executes two queries. Both of the queries have different types of result sets(different column counts). So when I pass my database connection to this method, I should be able to create two statements out of my connection which will return two different result sets. As of now MockConnection allows me to set only one statment. So should I change/extend MockConnection in some way so that it supports multiple statements? Has anybody faced this kind of problem? If yes, what solution did you go for?? Thanks, Gaurav |