|
From: <Ext...@no...> - 2003-07-02 14:26:06
|
Hi,
I want to "do something" with a parameter that is passed into a method =
that I am DynaMock'ing. The interface is:
public interface SqlExecutor {
public void execute(String sql, Iterator bindVariables, =
ResultSetHandler handler) throws SQLException;
}
and
public interface ResultSetHandler {
public void handle(ResultSet resultSet) throws SQLException;
}
So, I create a DynaMock of SqlExecutor, my code under test passes in =
some implementation of ResultSetHandler, and I need the DynaMock to push =
a ResultSet into this ResultSetHandler implementation.
Can DynaMock do this, or should I fall back on plain old expectation =
classes etc?
Thanks,
Mike.
|