Next: Unit Testing Database Code
Up: Unit Testing with JUnit
Previous: A sample JUnit session
Contents
Index
``Whoa ...that went fast ...how about a recap?'' No problem. Here's what we did:
- Write one test.
- Compile the test. It should fail (because you haven't implemented anything yet).
- Implement just enough to compile. (Refactor first if necessary.)
- Run the test and see it fail.
- Implement just enough to make the test pass.
- Run the test and see it pass.
- Refactor for clarity and "once and only once".
- Repeat from the top.
Next: Unit Testing Database Code
Up: Unit Testing with JUnit
Previous: A sample JUnit session
Contents
Index