Album Cover

Test-Driven Development Java

Close Preview
Frame First Picture
Once you've specified what behavior you would like to test-drive, it's time to frame that behavior.
Framing means "constructing by fitting and uniting the parts of the skeleton of a structure" (M-W.com).
Construct the skeleton code
necessary to compile your test.
It's critical to not produce more code than you need at this point: create whatever class(es), constructor(s) and method(s) are necessary for your assert statement and test to compile.
If you're working in an IDE that lets you generate code, let it produce the code required to successfully compile the test.
At this point, your test should run and fail.
You're then ready to make it pass by doing The Simplest Thing That Could Possibly Work.
(Reading...)
| Tweet...
Page rating: | Rate this Page