Enumerations and jMock… ouch! But here’s how.
I may write an article on jMock eventually but right now I’m just dropping by to throw this home-brewed code onto the web to help out a few Java developers who have hit hurdles using jMock and returning Enumeration instances from a stub/mock method.
jMock provides only 3 different actions for returning values by default. […]