From: Steve F. <st...@m3...> - 2003-09-16 07:10:11
|
veny wrote: > I have another question thought. How should i write the equivalent of > methods 'dynamic.Mock.expect(String methodName)' and > 'dynamic.Mock.expectAndReturn(String methodName, java.lang.Object obj)' in > own Mock object? If you mean when writing a mock object using the dynamic libraries, then no. The Dynamic Mock will do the work. If you mean, when writing your own mock objects from scratch, then you should write some kind of expectation, but how you write that is up to you. S. |