Exercises

1. Add test assertions to the CompanyDaoTest.find() method to test for the following scenarios:

  • Attempting to find a company with a null primary key
  • Attempting to find a company with a negative primary key

What do you consider to be the expected results?

2. Create the missing test case files for the ProjectDao, TaskDao, UserDao, and TaskLogDao implementations.

3. Create a test case to determine if removing (deleting) a project will automatically remove the project from the owning company's project collection.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.133.54