|
From: <DeS...@em...> - 2003-08-27 13:48:25
|
Nat,
> Something like this:
>
> Mock semanticsMock = new Mock(CallSemantics.class);
> Pluxie pluxie = new Pluxie();
>
> semanticsMock.expectAndReturn( "configure", C.args(C.same(pluxie)),
> pluxie );
Thanks. It worked.
However, my main confusion was that I was looking for an API where I could
specify an expecation on a method with a specific signature (argument list).
How do you handle expectations on overloaded methods, for example, what
would your write if the Pluxie interface would have read:
public interface CallSemantics {
Pluxie configure(Pluxie pluxieToConfigure);
Other configure(Other otherToConfigure);
}
How does the framework distinguishes the expectations between the overloaded
methods?
Ringo
|