TDD by Beck – Chapter 14 on GitHub

The code for Chapter 14 of TDD by Beck is now on GitHub


CH14: Change

Significant techniques are introduced here...though I had issues with Java 6 indicating that some methods (assertEquals(Object{}, Object[]) is deprecated.

* Added a Bank parameter
* Saw that the number 2 was duplicated in code and tests - so refactored it out from it as part of the rate
* A test for the ArrayEquals showed an assumption that did not work - so drove the direction of the solution....which was a separate class as a comparator (Pari)
* Wrote that (without tests!!!) as it was part of a refactorying.
* When there was an error - it forced a new test testIdentityRate() - which isolated the problem.
This entry was posted in TDD. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s