From: <mai...@ji...> - 2003-07-17 18:28:15
|
Is there any way to have Mock.matchAndReturn() match against method names using wildcards? For example, I'd like to: Mock mock = new Mock( InterfaceWithLotsOfBooleans.class ); mock.matchAndReturn( "is*", false ); Which for any isProperty method call would return false. I figure that some kind of callable subclass is necessary, but with very little in the way of javadocs (and the unit tests aren't helpful here), I don't know where to go. ;ted |