This week's book giveaway is in the JavaScript forum.
We're giving away four copies of JavaScript Promises Essentials and have Rami Sarieddine on-line!
See this thread for details.
The moose likes Testing and the fly likes Test infected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Test infected" Watch "Test infected" New topic
Author

Test infected

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
i got stuck when trying to recriate this article.
At a certain point author introduces class MoneyBag (so far ok) and in its constructors has:

and right after states:
The method appendMoney is an internal helper method that adds a Money to the list of Moneys and takes care of consolidating Monies with the same currency.

Well, without method's implementation i think i cant advance in article.
Is there something i'm missing? Because i'd really love to get infected
thanks in advance
[ March 09, 2005: Message edited by: miguel lisboa ]

java amateur
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I think that's a method name mismatch between "appendMoney(Money)" and "add(Money)"


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
i'm not sute that's the case, since:

BTW thanks for answering
[ March 09, 2005: Message edited by: miguel lisboa ]
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by miguel lisboa:
Well, without method's implementation i think i cant advance in article.
Is there something i'm missing? Because i'd really love to get infected


Yes, the implementation is missing from the article. I guess that's the perfect opportunity to get your hands dirty and try to come up with it yourself. It's not that hard if you do it step by step, and we are here to help you should you get stuck.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
I guess that's the perfect opportunity to get your hands dirty and try to come up with it yourself. It's not that hard if you do it step by step, and we are here to help you should you get stuck.

thanks for that; i tried till the point of creating an addMoney method, but later i gave up; in the meanwhile i'm busy with my persistence tests - i only code in my spare time. anyway sure i'll give it a shot later
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Test infected