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...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 5274 - 5303 of 28238   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
5274
... No. That's why we have databases. ... Yes. ... Consider a store that provides percentage discounts. Suppose discounts expire by some date. To find them,...
J. B. Rainsberger
nails762
Offline Send Email
Oct 1, 2003
5:27 pm
5275
Message: 9 Date: Tue, 30 Sep 2003 19:58:18 +0530 From: Thenappan <thens@...> ... We normally try and get all the presentation materials onto ...
cpp gent
cppgent0
Offline Send Email
Oct 1, 2003
5:27 pm
5276
... Let me see... ... quality ... I wrote this in an article that I hope STQe magazine will publish, although it will not have any code. It will describe why I...
J. B. Rainsberger
nails762
Offline Send Email
Oct 1, 2003
5:27 pm
5277
... why ... a "spy" ... to ... listeners in ... What you describe above, I used to think that was a mock object. My definition was: anytime you have your...
joelshellman
Offline Send Email
Oct 1, 2003
5:27 pm
5278
Hi, the code is ... import com.nomura.fi.mbs.rttm.ejb.interfaces.*; import javax.ejb.EJBHome; import javax.ejb.EJBLocalHome; import javax.naming.Context; ...
shailesh401
Offline Send Email
Oct 1, 2003
5:27 pm
5279
... And some of us thing that thing them quite useful when used judiciously, but a real design smell if overused. ;) Dave...
Dave Astels
astelsd
Offline Send Email
Oct 1, 2003
5:27 pm
5280
... "Agile Software Development: Principles, Patterns, and Practices" by Robert C. Martin contains some related material that you may find helpful. The book...
Alan Lund
zeke3099
Offline Send Email
Oct 1, 2003
5:27 pm
5281
I have a code TestCase here that I'm going to include and I'd like to ask this list two questions: 1) What "strategy" is being used here? Mock object, stub,...
Joel Shellman
joelshellman
Offline Send Email
Oct 1, 2003
5:27 pm
5282
... Like many other things... I am getting the impression that it is not that mocks are bad, but being so new, they get overused easily - just like exceptions...
Russell Gold
russgold
Offline Send Email
Oct 1, 2003
5:59 pm
5283
... I am finding my thinking on building JDBC code moving all over the place. The biggest problem I see with the mock approach I think is that it ties your...
Russell Gold
russgold
Offline Send Email
Oct 1, 2003
6:03 pm
5284
... Right. They're not bad. And their occurrence is often a signal that the code needs careful scrutiny. And often if we make a little effort to remove them,...
Ron Jeffries
ronaldejeffries
Offline Send Email
Oct 1, 2003
7:44 pm
5285
shailesh401 wrote: Google "Use your singletons wisely". I think if you just change this class to a toolbox, it'll be easier to test. If this is already a...
J. B. Rainsberger
nails762
Offline Send Email
Oct 1, 2003
7:45 pm
5286
... I think it's a question of definition. We can easily play the semantics game and confuse one another, which is one reason I'd like to see us converge on...
J. B. Rainsberger
nails762
Offline Send Email
Oct 2, 2003
10:25 pm
5287
... I call it a Spy. I think it is properly a Mock: it records information about what happened to review later. ... It appears that you want to verify this: *...
J. B. Rainsberger
nails762
Offline Send Email
Oct 2, 2003
10:25 pm
5288
XPSD is meeting tomorrow night, Thursday October 2. If you are interested in refactoring or seeing refactoring techniques in use, please attend! This will...
cpp gent
cppgent0
Offline Send Email
Oct 2, 2003
10:25 pm
5289
... It's the Golden Hammer, pure and simple. -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com :: +1 416 791-8603 Let's write...
J. B. Rainsberger
nails762
Offline Send Email
Oct 2, 2003
10:25 pm
5290
... I never realized you wrote that article! I implemented an enhanced version of your toolbox approach in our application, and it has been great in making it...
Chad Woolley
thewoolleyman
Offline Send Email
Oct 2, 2003
10:25 pm
5291
... Yes, but you know the database schema is changing, so you change your golden masters with it. It's not the best, but I think it's less costly than...
J. B. Rainsberger
nails762
Offline Send Email
Oct 2, 2003
10:25 pm
5292
... Where possible, mocks fail /as soon as they detect an error/. That's where the Endo Testing term somes from. That's how you get the stack trace that shows...
Steve Freeman
smg_freeman
Offline Send Email
Oct 2, 2003
10:44 pm
5293
... Do you guys consider the ability to validate itself and to detect the problem an absolute requirement when talking about Mock objects ? As a matter of...
Sven Gorts
Gorowitch
Offline Send Email
Oct 3, 2003
2:39 pm
5294
... I'm a little confused by that. So you're saying that it records method call sequence? But I thought it does about the same thing you were describing with...
Joel Shellman
joelshellman
Offline Send Email
Oct 3, 2003
2:39 pm
5295
... Precisely why I wrote that post. ... Absolutely. ... The above logic doesn't seem to relate to the definitions you mention below. According to those ...
Joel Shellman
joelshellman
Offline Send Email
Oct 3, 2003
2:39 pm
5296
... You're right. I think it's a Spy, and not a Mock, given my most recent response to the "semantics" thread. ... So you have already designed...
J. B. Rainsberger
nails762
Offline Send Email
Oct 3, 2003
6:22 pm
5297
... A method invocation sequence of 1 is still a method invocation sequence. If we're trying to reach solid definitions, then we have to be precise. The only...
J. B. Rainsberger
nails762
Offline Send Email
Oct 3, 2003
6:22 pm
5298
Everyone: I want to focus on this part of the recent conversation about the taxonomy of alternate implementations of interfaces. I would like to discuss...
J. B. Rainsberger
nails762
Offline Send Email
Oct 3, 2003
6:22 pm
5299
Everyone: The recent talk of mock objects has inspired me to write two essays. I have uploaded the first "How to use Mock Objects" the file section of this...
J. B. Rainsberger
nails762
Offline Send Email
Oct 3, 2003
6:22 pm
5300
... It may be that I'm just out of touch with the practices and terminology of the TDD community, but this "recording and verifying method invocation...
Colin Putney
colinputney
Offline Send Email
Oct 3, 2003
7:18 pm
5301
... To me, the important distinction is whether or not the mock/stub/fake/spy is ever used when the application is executing in production. If the object is ...
Chad Woolley
thewoolleyman
Offline Send Email
Oct 3, 2003
10:33 pm
5302
... I agree. It is possible that a method invocation sequence is the expectation, but not required. But it is the immediate declaration of a failure that is...
Russell Gold
russgold
Offline Send Email
Oct 3, 2003
10:33 pm
5303
... Or is this why you don't consider it a Fake object? ... Ummm... I don't follow how what I did is different from what you described. All I did was record...
Joel Shellman
joelshellman
Offline Send Email
Oct 3, 2003
10:33 pm
Messages 5274 - 5303 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