Used to create all types of JDBC mock objects.
Maintains the necessary dependencies between the mock objects.
If you use the mock objects returned by this
factory in your tests you can be sure that they are all
up to date.
Please note, that this class removes all drivers
from the JDBC DriverManager and registers
the
MockDriver . All drivers are preserved and
can be restored with
JDBCMockObjectFactory.restoreDrivers .
registerMockDriver() Removes all JDBC drivers from the DriveManager and
registers the mock driver.
public void
restoreDrivers() Since JDBCMockObjectFactory removes all the
drivers from the DriveManager (so the
MockDriver is guaranteed to be the only one)
you can use this method to restore the original drivers.
Removes all JDBC drivers from the DriveManager and
registers the mock driver. The removed drivers are preserved and
can be restored with
JDBCMockObjectFactory.restoreDrivers .
Since JDBCMockObjectFactory removes all the
drivers from the DriveManager (so the
MockDriver is guaranteed to be the only one)
you can use this method to restore the original drivers.
Automatically called by
com.mockrunner.base.BaseTestCase.tearDown .