So Dan and I have talked about this now, and we're going to put in some Mock thingy = strictMock(Thingy.class)
which won't stub. :) ----- Forwarded by Elizabeth Keogh/UK/ThoughtWorks on 08/12/2006 13:26 ----- Elizabeth Keogh <[EMAIL PROTECTED]> wrote on 04/12/2006 14:52:08: > > Stubbing is great, unless you're using a 3rd party library (Swing) > which is calling a method (isEnabled) on your mock (Action) that you > don't know about, so you spend half a day wondering why your > behaviours are all broken and eventually have to look in the 3rd party > source code to find out what's going on. > > I'd like to change the automatic stubbing so that it defaults when you > do mock.stubs(), but otherwise throws a wobbly for unexpected calls. > > Cheers, > Liz. > > -- > Elizabeth Keogh > [EMAIL PROTECTED] > http://www.livejournal.com/users/sirenian
