... Where are you seeing this? ... That's not the interesting part of mocking, but my guess is that puts you in a minority of programmers these days. ... which...
Most people don't have the luxury to have only greenfield projects to work on. Mocks help us a great deal in situations where you are the only one doing TDD...
... Well, I'm usually using jMock and just stub instead of expect if that's what is needed. In this case I would probably use expect however, especially for ...
... Adam, I certainly can't speak for Ron, but I also cannot see where he would be discouraging exposure to tools. In fact, as I read it, he is doing the ...
... Carl, The thing I don't understand is, how does that differ from a "normal" class - i.e., one that does not "implements someInterface;" ... It seems to...
... Ron, What is the distinction here between a fake and mock object? Are you just highlighting the difference between a "fake object" you create yourself and...
Hello, Adam. On Wednesday, November 1, 2006, at 3:53:42 AM, you ... Adam: I just said, in what you quoted below, that I'm not arguing about how you should...
Hello, Tamas. On Wednesday, November 1, 2006, at 5:24:22 AM, you ... I don't know. TDD is all about not knowing what I'd do. I'll comment on all this, more or...
Hello, Steve. Are you practicing your cross-examination technique in hopes of finding part-time work as a prosecuting attorney? On ... In many of the examples...
Hi, thanks for your input. A file has an interface that depends on order. I try to avoid that. I'll elaborate: A file is a perfect example of a brittle...
I would imaging mocks and interaces/roles might help as a designing- aid. In your example, how did you "know" that your design needs an entity called a...
... That's interesting. HttpThingie has to start listening on a given port. Do you find that interesting enough? If yes how do you test for that? If not what...
Avi, You know that I have started the same app with Mocks before. I started it without Mocks now to see where I get. But as you can see it seems that I got it...
There are a couple of ways that mocks can be useful: - they give you good checking on the arguments of the mocked method - they give you flexible control over...
Thanks for trying again. As for your concern that it is possible to have the wrong expectations about what should be called and return what I find that not to...
... But the thing being mocked would have it's own set of tests, would it not? I thought the point of using a mock, fake object or stub was to allow the...
Brad Stiles
bradley.stiles@...
Nov 1, 2006 2:21 pm
20351
... Ron, I don't don't why you worry with all this YAGNI stuff. Clearly, if you are responding to messages before they are sent, by default you should know...
... Not anymore, Easymock has been around for a while, rMock also uses record playback and I think that the new jMock interface uses generics and cool voodo...
... I think ... is inherently more fragile than the alternative - it tightly couples the test to the interface of one or more objects THAT ARE NOT UNDER TEST. ...
Today I'm gonna use a mock (maybe more than one) for a new webservice capability to our form designer application...yaaayyeee! It's like that 90 degree scratch...
... retrieve ... when ... That's the way I tend to do it. It's what I'd call integration testing v. unit testing. I don't normally consider integration tests...
Hi, Ron, ... I might write the interface first. I'm trying to think of a concrete example where I did this. I had an existing system with two quite ...
Hi, Sam, ... The difference is this: that the "normal class" can include many things in which my client has no interest. Classes shouldn't get that big, but...
... A command by definition mutates something. It really can't be tested apart from queries, or from having access to the state. w = new W(); y = new Y(w); ...
Thanks, I have to process that some more to absorb the gems of wizdom hidden within. I just wanted to point out something that looks like a typo ... So in this...