From: Steve F. <st...@m3...> - 2003-09-17 07:21:42
|
At that point you might as well write your mocks by hand -- the expectation library will help you do this. We have some ideas about dynmically mocking classes, but haven't had the time to patch them in. S. veny wrote: > What i actually meant was that i want my mock class to take in expectation > of a method being called and verify whether the method has been called at > the end (i.e. when .verify() method is called). I understand > dynamic.Mock.expect(String methodName) does that. I cant use dynamic.Mock as > the dynamic.Mock can only mock an interface, but i need to mock a class > implementation. > > So my issue is how to write my mock class that so that it can perform a > function like dynamic.Mock.expect(String methodName)? Any idea? |