Next: What should a test
Up: Working Backwards with JUnit
Previous: What are the goals
Contents
Index
- Test everything that can possibly break.
- Don't put code in places that are hard to test (like servlets).
- Typically you can't test GUI's. Therefore, do not put business logic in your GUI code. Do put your business logic in model classes that you can test.
- Methods involving databases are difficult to test, but there are several ways to get around this.
Next: What should a test
Up: Working Backwards with JUnit
Previous: What are the goals
Contents
Index