Simplified access layer interface. Added a class to connect to the databse and a test for the connector class
Added H2 database jar to lib directory
remove classpath
Shopping list Data Access Object working. Tests passing for all implemented methods. Methods to add/implement: getAllLists() and updateList()
Removed duplicate files
removed example class
Utilized setUp, tearDown, and equals methods to shorten and simplifiy tests. Added a method to add the name of a shopping list to a table holding all shopping list names. This is called whenever a list is saved.
Equals and hashCode in ListItem and FoodItem overridden.
Added comments
A data access object for food items. A food item will be saved with the name of the item, the shopping list to which it was added, and hold a count of how many times it has beed added to lists. I am still working on this feature and it has yet to be tested.
Moved method to connect to database from DBConnector.java to DAOUtils.java, added methods to close JDBC related objects.
Seperated tests of deletion of shopping lists from database to another test case as there was conflict with the tearDown method.
Added exception wrapper DAOException
Added test for FoodItemDAO. Set H2 database to work in MySQL mode to have acces to On Duplicate Key command. Changed test for deleting shopping list names from table holding a reference to all lists.
DAOUtils with correct URL
Rebased local from master repo to decrease conflicts in pull request
Cast ListOfItems in ShoppingListDAOTest to ShoppinList to meet requirements of ShoppingList equals method. Removed psuedo code comments.
Updated FoodItemDAOTest
Changed package names
Changed package name