Finishing Up

Writing the tests and implementation for the rest of the tables—Label,Reviewer,Review,Track, and Recording— is very similar to what we have done for Artist and Genre. The only difference that we encountered was in testing updates; we chose to write a separate test for each field that we wanted to update instead of having one test that updates all the properties and then performs the verification. Once again, the point we are trying to get across with tests is isolation. We want each test to have only a single reason to change. Because the implementations did not provide any additional feedback into the design, they are left as an exercise to the reader.

Team LiB

< PREVIOUS

0 0

Post a comment