|
From: Frederic D. <fre...@ac...> - 2003-09-24 09:19:48
|
Nat Pryce wrote:
> With the dynamic mocks you can write your own Callable objects to match
> against any method or in some other custom manner.
Ok, I roughly see what I should do. In the Wiki, I read:
-----
This is sugar for:
mock.add(
new CallOnceExpectation(
new NameMatcher( "methodName",
new ArgumentMatcher( expectedArguments,
new ReturnStub( result ) ) ) ) );
-----
But there's no add method anywhere in Mock.
I guess I could use the expect(InvokableMatcher) method? But this
is available on CoreMock, not on Mock.
Any hint?
best regards,
Fr=E9d=E9ric
|