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.

Get Enterprise Application Development with Ext JS and Spring now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.