1 May 2006 05:40
Re: stronger typing
Steve Freeman wrote: > On 26 Apr 2006, at 14:29, Joris Schouteden wrote: >> In our project, we use jMock but the adoption is somewhat hindered by >> the >> lack of typing and hence refactoring support. > > Is this because it's really getting in the way, or because people > don't like it. If the former, your objects may be getting too big. I could see that needing to frequently rename a frequently-mocked method would indicate an over-reliance on a particular interface. But the conceptual leap to objects getting too big doesn't come naturally to me. There's other reasons than refactoring to like the typesafe approach, auto-complete and quick fixing among them. >> So I created a little extension to jMock that does something similar to >> what RMock or EasyMock do: allow expectation to be set on the proxy by >> invoking its methods with the expected arguments. See below for >> examples. >> >> So, my questions to jMock development are: >> - Is there any such functionality planned for jMock? > > there's certainly nothing planned. That sounds less intrigued than Nat's response in the "Typesafe expectations" thread from February/March. Joris, how would you contrast your approach to the one outlined in that thread?(Continue reading)
RSS Feed