Search the web
Sign In
New User? Sign Up
testdrivendevelopment · Test-driven Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 20332 - 20361 of 28238   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
20332
... 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...
Steve Freeman
smg_freeman
Offline Send Email
Nov 1, 2006
8:56 am
20333
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...
Adam Dymitruk
adymitruk
Offline Send Email
Nov 1, 2006
8:58 am
20334
... 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 ...
Tamas Szabo
balkan_tourist
Offline Send Email
Nov 1, 2006
10:25 am
20335
... 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 ...
Sammy Larbi
spammybrali
Offline Send Email
Nov 1, 2006
12:33 pm
20336
... 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...
Sammy Larbi
spammybrali
Offline Send Email
Nov 1, 2006
12:34 pm
20337
... I would have thought that is precisely the mock we would want to avoid. Would you mind explaining the thoughts behind this more clearly? -Sam...
Sammy Larbi
spammybrali
Offline Send Email
Nov 1, 2006
12:36 pm
20338
... 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...
Sammy Larbi
spammybrali
Offline Send Email
Nov 1, 2006
12:42 pm
20339
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...
Ron Jeffries
ronaldejeffries
Offline Send Email
Nov 1, 2006
12:45 pm
20340
... Must be, since trying to think about it I'm getting a segmentation fault....
Sammy Larbi
spammybrali
Offline Send Email
Nov 1, 2006
12:47 pm
20341
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...
Ron Jeffries
ronaldejeffries
Offline Send Email
Nov 1, 2006
12:48 pm
20342
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...
Ron Jeffries
ronaldejeffries
Offline Send Email
Nov 1, 2006
12:52 pm
20343
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...
Joakim Ohlrogge
j0hlrogge
Offline Send Email
Nov 1, 2006
12:54 pm
20344
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...
avinap77
Offline Send Email
Nov 1, 2006
12:59 pm
20345
... 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...
Tamas Szabo
balkan_tourist
Offline Send Email
Nov 1, 2006
1:26 pm
20346
... You could, but to me, it seems like you'd be breaking the principle of least surprise. -Sam...
Sammy Larbi
spammybrali
Offline Send Email
Nov 1, 2006
1:28 pm
20347
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...
Tamas Szabo
balkan_tourist
Offline Send Email
Nov 1, 2006
1:35 pm
20348
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...
Donaldson, John (GEO)
geo_johnfr
Offline Send Email
Nov 1, 2006
1:42 pm
20349
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...
Joakim Ohlrogge
j0hlrogge
Offline Send Email
Nov 1, 2006
1:44 pm
20350
... 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@...
Send Email
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...
Sammy Larbi
spammybrali
Offline Send Email
Nov 1, 2006
2:29 pm
20352
... 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...
Joakim Ohlrogge
j0hlrogge
Offline Send Email
Nov 1, 2006
2:33 pm
20353
... 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. ...
Keith Ray
attkeithray
Offline Send Email
Nov 1, 2006
2:50 pm
20354
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...
Jim Bennett
jtbennett77
Offline Send Email
Nov 1, 2006
3:02 pm
20355
... 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...
Jim Cakalic
jim_cakalic
Offline Send Email
Nov 1, 2006
3:14 pm
20356
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 ...
Carl Manaster
cmanaster
Offline Send Email
Nov 1, 2006
3:25 pm
20357
... I have a copy of the article that I retrieved from the ADC 2004 site about a year ago. Unfortunately, it seems the domain ...
Jim Cakalic
jim_cakalic
Offline Send Email
Nov 1, 2006
3:31 pm
20358
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...
Carl Manaster
cmanaster
Offline Send Email
Nov 1, 2006
3:36 pm
20359
... I call that a "static" mock, as opposed to a "dynamic" mock, which is something made up "on-the-fly" to attend a specific test need....
Luiz Esmiralha
lesmiralha
Offline Send Email
Nov 1, 2006
4:04 pm
20360
... 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); ...
Alan Baljeu
alanbaljeu
Offline Send Email
Nov 1, 2006
4:22 pm
20361
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...
Joakim Ohlrogge
j0hlrogge
Offline Send Email
Nov 1, 2006
4:36 pm
Messages 20332 - 20361 of 28238   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help