CSC435: Homework 6


This is your homework on testing. Add unit and integration tests to your project and ensure you have at least 80% coverage.

Testing in enterprise projects involves heavy use of mock objects. Be careful to write your tests well and not use resources you shouldn't when testing (such as database connections). Also, remember that the point of testing is to make sure your code achieves what it should; writing tests just to achieve some arbitrary coverage goal is not useful (i.e., don't chase the metric -- it only exists as a guideline, because if you don't cover your code well enough, you are likely not testing what you should be).

Writing tests is also an exercise in refactoring, because you often find that your current OO design gets in the way. Make sure you refactor your code appropriately.

Submit to the Brightspace dropbox your archived (zip or tar.gz) project directory, following the recommended directory structure. That should include all of your Java source files in addition to any other resources you are using.