From: Simon L. <sim...@uk...> - 2002-09-12 11:18:18
|
Hi, I've been looking into the sql Mock objects, and now in particular how to=20 verify the Expectations that have been set up. =46rom what I understand the only way to do this currently is to manually=20 code a call to verify on every MockConnection, MockStatement derived, and=20 MockResultSet derived, object from the test code. It strikes me it would be must nicer to be able to call verify on the=20 MockConnection and it ripple through the heirachy of objects. I've started looking into this, alongside other changes I'd like to=20 present in the near future, and a way of doing it would be to change=20 ExpectationMap and ReturnObjectList to allow the verifying their=20 contained objects by adding a flag to enable/disable the functionality=20 (with disable being the default). ReturnObjectList would have to keep=20 hold of returned objects in order to do this successfully. What do you think? Sensible? Simon., =2D-=20 =2D------------------------------------------------------------------------- Simon Levitt, Senior Development Engineer @ WorldPay plc, WorldPay Centre, The Science Park, Milton Rd., Cambridge, CB4 0WE, ENGLAND = =20 Sim...@uk... Ph:+44(0)1223 715151 F:+44(0)1223 715157 =2D------------------------ http://www.worldpay.com/ ----------------------- |